DeliveryAddress.fromMap constructor
DeliveryAddress.fromMap(
- Map map
Implementation
factory DeliveryAddress.fromMap(Map<dynamic, dynamic> map) {
return DeliveryAddress(
id: map['id'] as int,
user_id: map['user_id'] as int,
latitude: map['latitude'] as double,
longitude: map['longitude'] as double,
address: map['address'] .toString(),
detailed_address: map['detailed_address'] .toString(),
recipient_name: map['recipient_name'] .toString(),
recipient_mobile: map['recipient_mobile'] .toString(),
created_at: map['created_at'] .toString(),
updated_at: map['updated_at'] .toString(),
deleted_at: map['deleted_at'] .toString(),
);
}