toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of this ShortTermParking object.

Implementation

Map<String, dynamic> toJson() {
  return {
    ApiFields.totalCount: totalSpaces,
    ApiFields.notes: notes,
  };
}