Station.fromJson constructor
Station.fromJson(
- Map<String, dynamic> json
)
Implementation
Station.fromJson(Map<String, dynamic> json) {
id = json['id'];
merchantId = json['merchant_id'];
stationId = json['station_id'];
name = json['name'];
company = json['company'];
managerName = json['manager_name'];
managerEmail = json['manager_email'];
managerPhone = json['manager_phone'];
ownerName = json['owner_name'];
ownerEmail = json['owner_email'];
ownerPhone = json['owner_phone'];
brand = json['brand'];
latitude = json['latitude'];
longitude = json['longitude'];
street = json['street'];
city = json['city'];
state = json['state'];
zip = json['zip'];
countryId = json['country_id'];
image = json['image'];
instagramUrl = json['instagram_url'];
twitterUrl = json['twitter_url'];
facebookUrl = json['facebook_url'];
status = json['status'];
createdAt = json['created_at'];
updatedAt = json['updated_at'];
deletedAt = json['deleted_at'];
isOutOfService = json['is_out_of_service'];
openAt = json['open_at'];
closeAt = json['close_at'];
petrolPrice = json['petrol_price'];
kerosenePrice = json['kerosene_price'];
dieselPrice = json['diesel_price'];
hr24Operation = json['hr24_operation'];
url = json['url'];
averageRating = json['average_rating'];
}