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