import 'package:json_annotation/json_annotation.dart'; import 'package:photolink_beta/Model/MapModel/CoordintaionModel.dart'; import 'album.dart'; part 'CreateTrip.g.dart'; @JsonSerializable() class CreateTrip{ final String name; final String picture; final String end_date; final String start_date; final String id; final String description; List path; CreateTrip({ this.name, this.picture, this.end_date, this.start_date, this.description, this.id, this.path }); Map toJson() => {'name': name, 'picture': picture,'end_date':end_date,'start_date':start_date,'description':description,'id':id}; factory CreateTrip.fromJson(Map json) =>_$TripFromJson(json); }