Files
rtime/lib/models/drone.dart

15 lines
351 B
Dart

class Drone {
int? id;
String name;
String? imageUuid;
Drone({this.id, required this.name, this.imageUuid});
factory Drone.fromMap(Map<String, dynamic> map) =>
Drone(id: map["id"], name: map["name"], imageUuid: map["image_uuid"]);
Map<String, dynamic> toMap() {
return {"id": id, "name": name, "image_uuid": imageUuid};
}
}