// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'create_group_from_file_response.dart';

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

FileUploadError _$FileUploadErrorFromJson(Map<String, dynamic> json) =>
    FileUploadError(
      lineNumber: (json['lineNumber'] as num).toInt(),
      account: json['account'] as String,
      name: json['name'] as String,
      message: json['message'] as String,
    );

Map<String, dynamic> _$FileUploadErrorToJson(FileUploadError instance) =>
    <String, dynamic>{
      'lineNumber': instance.lineNumber,
      'account': instance.account,
      'name': instance.name,
      'message': instance.message,
    };

CreateGroupFromFileResponse _$CreateGroupFromFileResponseFromJson(
  Map<String, dynamic> json,
) => CreateGroupFromFileResponse(
  batch: json['batch'] == null
      ? null
      : GroupBatch.fromJson(json['batch'] as Map<String, dynamic>),
  totalRows: (json['totalRows'] as num).toInt(),
  successCount: (json['successCount'] as num).toInt(),
  errorCount: (json['errorCount'] as num).toInt(),
  errors: (json['errors'] as List<dynamic>)
      .map((e) => FileUploadError.fromJson(e as Map<String, dynamic>))
      .toList(),
);

Map<String, dynamic> _$CreateGroupFromFileResponseToJson(
  CreateGroupFromFileResponse instance,
) => <String, dynamic>{
  'batch': instance.batch?.toJson(),
  'totalRows': instance.totalRows,
  'successCount': instance.successCount,
  'errorCount': instance.errorCount,
  'errors': instance.errors.map((e) => e.toJson()).toList(),
};
