25 lines
899 B
Dart
25 lines
899 B
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'family_model.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
FamilyModel _$FamilyModelFromJson(Map<String, dynamic> json) => FamilyModel(
|
||
|
id: json['id'] as int,
|
||
|
code: json['code'] as String?,
|
||
|
createdAt: dateFromJson(json['created_at'] as int),
|
||
|
updatedAt: dateFromJson(json['updated_at'] as int),
|
||
|
hide: json['hide'] == null ? false : boolFromJson(json['hide'] as int),
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> _$FamilyModelToJson(FamilyModel instance) =>
|
||
|
<String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'code': instance.code,
|
||
|
'hide': boolToJson(instance.hide),
|
||
|
'created_at': dateToJson(instance.createdAt),
|
||
|
'updated_at': dateToJson(instance.updatedAt),
|
||
|
};
|