class ExerciseDevice { late int exerciseDeviceId; late String name; late String description; late String imageUrl; late String nameTranslation; late int sort; late bool place; bool? isGym; ExerciseDevice.fromJson(Map json) { this.exerciseDeviceId = json['exerciseDeviceId']; this.name = json['name']; this.description = json['description']; this.imageUrl = json['imageUrl']; this.nameTranslation = json['translations'][0]['name']; this.sort = json['sort']; this.place = json['place'] == 1 ? true : false; } }