52 lines
1.9 KiB
Dart
52 lines
1.9 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'post_categories.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Tag _$TagFromJson(Map<String, dynamic> json) => Tag(
|
|
id: (json['id'] as num).toInt(),
|
|
alias: json['alias'] as String,
|
|
name: json['name'] as String,
|
|
description: json['description'] as String,
|
|
createdAt: DateTime.parse(json['created_at'] as String),
|
|
updatedAt: DateTime.parse(json['updated_at'] as String),
|
|
deletedAt: json['deleted_at'] == null
|
|
? null
|
|
: DateTime.parse(json['deleted_at'] as String),
|
|
);
|
|
|
|
Map<String, dynamic> _$TagToJson(Tag instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'alias': instance.alias,
|
|
'name': instance.name,
|
|
'description': instance.description,
|
|
'created_at': instance.createdAt.toIso8601String(),
|
|
'updated_at': instance.updatedAt.toIso8601String(),
|
|
'deleted_at': instance.deletedAt?.toIso8601String(),
|
|
};
|
|
|
|
Category _$CategoryFromJson(Map<String, dynamic> json) => Category(
|
|
id: (json['id'] as num).toInt(),
|
|
alias: json['alias'] as String,
|
|
name: json['name'] as String,
|
|
description: json['description'] as String,
|
|
createdAt: DateTime.parse(json['created_at'] as String),
|
|
updatedAt: DateTime.parse(json['updated_at'] as String),
|
|
deletedAt: json['deleted_at'] == null
|
|
? null
|
|
: DateTime.parse(json['deleted_at'] as String),
|
|
);
|
|
|
|
Map<String, dynamic> _$CategoryToJson(Category instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'alias': instance.alias,
|
|
'name': instance.name,
|
|
'description': instance.description,
|
|
'created_at': instance.createdAt.toIso8601String(),
|
|
'updated_at': instance.updatedAt.toIso8601String(),
|
|
'deleted_at': instance.deletedAt?.toIso8601String(),
|
|
};
|