ParkingModel class Null safety

Parking data model

Inheritance
Annotations

Constructors

ParkingModel({required String id, required String name, required String address, required double latitude, required double longitude, required String imageUrl, List<ServiceModel>? services, required int spacesAvailable, required int totalCapacity, required double rating, required double pricePerHour, required String description, TimeOfDay? opening, TimeOfDay? closing, double? distance, DateTime? arrivalTime})
ParkingModel.fromJson(Map<String, dynamic> json)
factory

Properties

address String
read / write, inherited
arrivalTime DateTime?
read / write, inherited
closing TimeOfDay?
@TimeOfDayConverter(), read / write, override-getter
description String
read / write, inherited
distance double?
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
read / write, inherited
imageUrl String
read / write, inherited
latitude double
read / write, inherited
longitude double
read / write, inherited
name String
read / write, inherited
opening TimeOfDay?
@TimeOfDayConverter(), read / write, override-getter
pricePerHour double
read / write, inherited
rating double
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
services List<ServiceModel>?
@ServiceModelConverter(), read / write, override-getter
spacesAvailable int
read / write, inherited
totalCapacity int
read / write, inherited

Methods

compareBy(String? key, Parking b) → dynamic
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited