// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'group_batch_model.dart';

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

GroupBatch _$GroupBatchFromJson(Map<String, dynamic> json) => GroupBatch(
  id: json['id'] as String?,
  recipientGroupId: json['recipientGroupId'] as String?,
  userId: json['userId'] as String?,
  workspaceId: json['workspaceId'] as String?,
  currency: json['currency'] as String?,
  description: json['description'] as String?,
  value: (json['value'] as num?)?.toDouble(),
  status: json['status'] as String?,
  paymentProcessorLabel: json['paymentProcessorLabel'] as String?,
  paymentProcessorName: json['paymentProcessorName'] as String?,
  paymentProcessorImage: json['paymentProcessorImage'] as String?,
  transactionTemplate: json['transactionTemplate'] as String?,
  createdAt: json['createdAt'] as String?,
  count: (json['count'] as num?)?.toInt(),
  successfulCount: (json['successfulCount'] as num?)?.toInt(),
  failedCount: (json['failedCount'] as num?)?.toInt(),
);

Map<String, dynamic> _$GroupBatchToJson(GroupBatch instance) =>
    <String, dynamic>{
      'id': instance.id,
      'recipientGroupId': instance.recipientGroupId,
      'userId': instance.userId,
      'workspaceId': instance.workspaceId,
      'currency': instance.currency,
      'description': instance.description,
      'value': instance.value,
      'status': instance.status,
      'paymentProcessorLabel': instance.paymentProcessorLabel,
      'paymentProcessorName': instance.paymentProcessorName,
      'paymentProcessorImage': instance.paymentProcessorImage,
      'transactionTemplate': instance.transactionTemplate,
      'createdAt': instance.createdAt,
      'count': instance.count,
      'successfulCount': instance.successfulCount,
      'failedCount': instance.failedCount,
    };

GroupBatchItem _$GroupBatchItemFromJson(Map<String, dynamic> json) =>
    GroupBatchItem(
      id: json['id'] as String?,
      groupBatchId: json['groupBatchId'] as String?,
      recipientName: json['recipientName'] as String?,
      recipientPhone: json['recipientPhone'] as String?,
      recipientAccount: json['recipientAccount'] as String?,
      amount: (json['amount'] as num?)?.toDouble(),
      status: json['status'] as String?,
      transactionId: json['transactionId'] as String?,
      errorMessage: json['errorMessage'] as String?,
      createdAt: json['createdAt'] as String?,
      billName: json['billName'] as String?,
      billProductName: json['billProductName'] as String?,
      providerLabel: json['providerLabel'] as String?,
      providerImage: json['providerImage'] as String?,
      creditAddress: json['creditAddress'] as String?,
    );

Map<String, dynamic> _$GroupBatchItemToJson(GroupBatchItem instance) =>
    <String, dynamic>{
      'id': instance.id,
      'groupBatchId': instance.groupBatchId,
      'recipientName': instance.recipientName,
      'recipientPhone': instance.recipientPhone,
      'recipientAccount': instance.recipientAccount,
      'amount': instance.amount,
      'status': instance.status,
      'transactionId': instance.transactionId,
      'errorMessage': instance.errorMessage,
      'createdAt': instance.createdAt,
      'billName': instance.billName,
      'billProductName': instance.billProductName,
      'providerLabel': instance.providerLabel,
      'providerImage': instance.providerImage,
      'creditAddress': instance.creditAddress,
    };

CreateBatchRequest _$CreateBatchRequestFromJson(Map<String, dynamic> json) =>
    CreateBatchRequest(
      recipientGroupId: json['recipientGroupId'] as String,
      userId: json['userId'] as String,
      workspaceId: json['workspaceId'] as String,
      currency: json['currency'] as String,
      description: json['description'] as String,
      amount: (json['amount'] as num).toDouble(),
      paymentProcessorLabel: json['paymentProcessorLabel'] as String?,
      paymentProcessorName: json['paymentProcessorName'] as String?,
      paymentProcessorImage: json['paymentProcessorImage'] as String?,
    );

Map<String, dynamic> _$CreateBatchRequestToJson(CreateBatchRequest instance) =>
    <String, dynamic>{
      'recipientGroupId': instance.recipientGroupId,
      'userId': instance.userId,
      'workspaceId': instance.workspaceId,
      'currency': instance.currency,
      'description': instance.description,
      'amount': instance.amount,
      'paymentProcessorLabel': instance.paymentProcessorLabel,
      'paymentProcessorName': instance.paymentProcessorName,
      'paymentProcessorImage': instance.paymentProcessorImage,
    };

BatchActionRequest _$BatchActionRequestFromJson(Map<String, dynamic> json) =>
    BatchActionRequest(
      workspaceId: json['workspaceId'] as String,
      idempotencyKey: json['idempotencyKey'] as String,
      authType: json['authType'] as String?,
    );

Map<String, dynamic> _$BatchActionRequestToJson(BatchActionRequest instance) =>
    <String, dynamic>{
      'workspaceId': instance.workspaceId,
      'idempotencyKey': instance.idempotencyKey,
      'authType': instance.authType,
    };

GroupBatchUpdateRequest _$GroupBatchUpdateRequestFromJson(
  Map<String, dynamic> json,
) => GroupBatchUpdateRequest(
  id: json['id'] as String?,
  workspaceId: json['workspaceId'] as String?,
  paymentProcessorLabel: json['paymentProcessorLabel'] as String?,
  paymentProcessorName: json['paymentProcessorName'] as String?,
  paymentProcessorImage: json['paymentProcessorImage'] as String?,
);

Map<String, dynamic> _$GroupBatchUpdateRequestToJson(
  GroupBatchUpdateRequest instance,
) => <String, dynamic>{
  'id': instance.id,
  'workspaceId': instance.workspaceId,
  'paymentProcessorLabel': instance.paymentProcessorLabel,
  'paymentProcessorName': instance.paymentProcessorName,
  'paymentProcessorImage': instance.paymentProcessorImage,
};
