workouttest_app/lib/model/exercise_device.dart
2020-11-23 18:36:41 +01:00

22 lines
408 B
Dart

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<String, dynamic> toJson() =>
{
"name": name,
"description": description,
};
}