import 'Position.dart'; class Address { Address({ this.address, this.home, this.id, this.position, this.timestmp,}); Address.fromJson(dynamic json) { address = json['address']; home = json['home']; id = json['id']; position = json['position'] != null ? Position.fromJson(json['position']) : null; timestmp = json['timestmp']; } String? address; bool? home; int? id; Position? position; int? timestmp; Map toJson() { final map = {}; map['address'] = address; map['home'] = home; map['id'] = id; if (position != null) { map['position'] = position?.toJson(); } map['timestmp'] = timestmp; return map; } }