20 lines
392 B
Dart
20 lines
392 B
Dart
class Owner {
|
|
Owner({
|
|
required this.firstName,
|
|
required this.lastName,
|
|
required this.contact,
|
|
required this.id,
|
|
});
|
|
|
|
String firstName;
|
|
String lastName;
|
|
String contact;
|
|
int id;
|
|
|
|
factory Owner.fromJSON(Map<String, dynamic> json) => Owner(
|
|
contact: json["contact"],
|
|
firstName: json["first_name"],
|
|
lastName: json["last_name"],
|
|
id: json["id"],
|
|
);
|
|
}
|