Availability.fromJson constructor
Availability.fromJson(
- List rawData
Implementation
factory Availability.fromJson(List rawData) {
return Availability(rawData.map((e) {
if (e is num) return e.toInt();
if (e is int) return e;
if (e is double) return e.toInt();
return int.parse(e.toString());
}).toList());
}