Road class

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

Road.new({String? id, String? name, String? direction, String? distance, String? location})
const
Road.fromJson(Map<String, dynamic> json)
factory

Properties

direction String?
final
distance String?
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
location String?
final
name String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, String? name, String? direction, String? distance, String? location}) Road
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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

Static Methods

nullableListFromJson(dynamic value) List<Road>?