mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'booking.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$BookingImpl _$$BookingImplFromJson(Map<String, dynamic> json) =>
|
|
_$BookingImpl(
|
|
id: (json['id'] as num?)?.toInt(),
|
|
startDate: DateTime.parse(json['startDate'] as String),
|
|
endDate: DateTime.parse(json['endDate'] as String),
|
|
destination: Destination.fromJson(
|
|
json['destination'] as Map<String, dynamic>,
|
|
),
|
|
activity: (json['activity'] as List<dynamic>)
|
|
.map((e) => Activity.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
|
|
Map<String, dynamic> _$$BookingImplToJson(_$BookingImpl instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'startDate': instance.startDate.toIso8601String(),
|
|
'endDate': instance.endDate.toIso8601String(),
|
|
'destination': instance.destination,
|
|
'activity': instance.activity,
|
|
};
|