22 lines
408 B
Dart
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,
|
|
};
|
|
} |