import 'package:tkmp_schedule_app/features/specialities/domain/entities/speciality.dart';

class SpecialityModel extends Speciality {
  SpecialityModel(String id, String name) : super(id, name);

  SpecialityModel.fromJSON(Map<String, dynamic> json)
      : super(json['id'], json['name']);

  static List<SpecialityModel> fromJSONToList(List<dynamic> json) {
    return json.map((j) => new SpecialityModel.fromJSON(j)).toList();
  }
}
