Created
December 2, 2021 10:38
-
-
Save berkayoruc/7c20149098067e65daa6c143b0c5e828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Buffet { | |
int _id; | |
String _district; | |
String _neighborhood; | |
String _name; | |
String _latitude; | |
String _longitude; | |
Buffet(this._id, this._district, this._neighborhood, this._name, | |
this._latitude, this._longitude); | |
factory Buffet.fromJSON(Map<String, dynamic> json) => Buffet( | |
int.parse(json['_id'].toString()), | |
json['Ilce_Adi'], | |
json['Mahalle_Adi'], | |
json['Bufe_Adi'], | |
json['Enlem'], | |
json['Boylam']); | |
String get name => _name; | |
String get district => _district; | |
String get neighborhood => _neighborhood; | |
String get latitude => _latitude; | |
String get longitude => _longitude; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment