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.1 KiB
30 lines
1.1 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),
|
|
name: json['name'] as String,
|
|
destinationRef: json['destinationRef'] as String,
|
|
activitiesRef: (json['activitiesRef'] as List<dynamic>)
|
|
.map((e) => e as String)
|
|
.toList(),
|
|
);
|
|
|
|
Map<String, dynamic> _$$BookingImplToJson(_$BookingImpl instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'startDate': instance.startDate.toIso8601String(),
|
|
'endDate': instance.endDate.toIso8601String(),
|
|
'name': instance.name,
|
|
'destinationRef': instance.destinationRef,
|
|
'activitiesRef': instance.activitiesRef,
|
|
};
|