ShortTermParking.fromJson constructor
Creates a ShortTermParking object from a JSON object.
Implementation
factory ShortTermParking.fromJson(Map<String, dynamic> json) {
return ShortTermParking(
totalSpaces: ((json[ApiFields.totalCount] ?? -1) as num).toInt(),
notes: json[ApiFields.notes],
);
}