36 lines
1.3 KiB
Dart
36 lines
1.3 KiB
Dart
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
|
||
|
|
part of 'category_dtos.dart';
|
||
|
|
|
||
|
|
// **************************************************************************
|
||
|
|
// JsonSerializableGenerator
|
||
|
|
// **************************************************************************
|
||
|
|
|
||
|
|
_$CategoryDtoImpl _$$CategoryDtoImplFromJson(Map<String, dynamic> json) =>
|
||
|
|
_$CategoryDtoImpl(
|
||
|
|
id: json['id'] as String?,
|
||
|
|
organizationId: json['organization_id'] as String?,
|
||
|
|
name: json['name'] as String?,
|
||
|
|
description: json['description'] as String?,
|
||
|
|
businessType: json['business_type'] as String?,
|
||
|
|
metadata: json['metadata'] as Map<String, dynamic>?,
|
||
|
|
createdAt: json['created_at'] == null
|
||
|
|
? null
|
||
|
|
: DateTime.parse(json['created_at'] as String),
|
||
|
|
updatedAt: json['updated_at'] == null
|
||
|
|
? null
|
||
|
|
: DateTime.parse(json['updated_at'] as String),
|
||
|
|
);
|
||
|
|
|
||
|
|
Map<String, dynamic> _$$CategoryDtoImplToJson(_$CategoryDtoImpl instance) =>
|
||
|
|
<String, dynamic>{
|
||
|
|
'id': instance.id,
|
||
|
|
'organization_id': instance.organizationId,
|
||
|
|
'name': instance.name,
|
||
|
|
'description': instance.description,
|
||
|
|
'business_type': instance.businessType,
|
||
|
|
'metadata': instance.metadata,
|
||
|
|
'created_at': instance.createdAt?.toIso8601String(),
|
||
|
|
'updated_at': instance.updatedAt?.toIso8601String(),
|
||
|
|
};
|