54 lines
1.7 KiB
Dart
54 lines
1.7 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'payment_method_dtos.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$ListPaymentMethodDtoImpl _$$ListPaymentMethodDtoImplFromJson(
|
|
Map<String, dynamic> json,
|
|
) => _$ListPaymentMethodDtoImpl(
|
|
paymentMethods: (json['payment_methods'] as List<dynamic>?)
|
|
?.map((e) => PaymentMethodDto.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
totalCount: (json['total_count'] as num?)?.toInt(),
|
|
page: (json['page'] as num?)?.toInt(),
|
|
limit: (json['limit'] as num?)?.toInt(),
|
|
totalPages: (json['total_pages'] as num?)?.toInt(),
|
|
);
|
|
|
|
Map<String, dynamic> _$$ListPaymentMethodDtoImplToJson(
|
|
_$ListPaymentMethodDtoImpl instance,
|
|
) => <String, dynamic>{
|
|
'payment_methods': instance.paymentMethods,
|
|
'total_count': instance.totalCount,
|
|
'page': instance.page,
|
|
'limit': instance.limit,
|
|
'total_pages': instance.totalPages,
|
|
};
|
|
|
|
_$PaymentMethodDtoImpl _$$PaymentMethodDtoImplFromJson(
|
|
Map<String, dynamic> json,
|
|
) => _$PaymentMethodDtoImpl(
|
|
id: json['id'] as String?,
|
|
organizationId: json['organization_id'] as String?,
|
|
name: json['name'] as String?,
|
|
type: json['type'] as String?,
|
|
isActive: json['is_active'] as bool?,
|
|
createdAt: json['created_at'] as String?,
|
|
updatedAt: json['updated_at'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$$PaymentMethodDtoImplToJson(
|
|
_$PaymentMethodDtoImpl instance,
|
|
) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'organization_id': instance.organizationId,
|
|
'name': instance.name,
|
|
'type': instance.type,
|
|
'is_active': instance.isActive,
|
|
'created_at': instance.createdAt,
|
|
'updated_at': instance.updatedAt,
|
|
};
|