// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'withdrawal_model.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

WithdrawMethodModel _$WithdrawMethodModelFromJson(Map<String, dynamic> json) =>
    WithdrawMethodModel(
      name: json['name'] as String?,
      email: json['email'] as String?,
      method: json['method'] as String?,
      userId: json['userId'] as String?,
      accountNumber: json['accountNumber'] as String?,
      accountHolderName: json['accountHolderName'] as String?,
      bankName: json['bankName'] as String?,
      branchCode: json['branchCode'] as String?,
      swiftCode: json['swiftCode'] as String?,
    )..createdAt =
        WithdrawMethodModel._dateTimeFromJson(json['createdAt'] as Timestamp?);

Map<String, dynamic> _$WithdrawMethodModelToJson(
        WithdrawMethodModel instance) =>
    <String, dynamic>{
      if (instance.name case final value?) 'name': value,
      if (instance.email case final value?) 'email': value,
      if (instance.method case final value?) 'method': value,
      if (instance.userId case final value?) 'userId': value,
      if (instance.accountNumber case final value?) 'accountNumber': value,
      if (instance.accountHolderName case final value?)
        'accountHolderName': value,
      if (instance.bankName case final value?) 'bankName': value,
      if (instance.branchCode case final value?) 'branchCode': value,
      if (instance.swiftCode case final value?) 'swiftCode': value,
      if (WithdrawMethodModel._dateTimeToJson(instance.createdAt)
          case final value?)
        'createdAt': value,
    };
