class ExerciseType { int deviceId; String name; String description; String imageUrl; ExerciseType({this.name, this.description}); ExerciseType.fromJson(Map json) { this.name = json['name']; this.description = json['description']; this.imageUrl = json['imageUrl']; } Map toJson() => { "name": name, "description": description, }; }