CarExtension extension

Provides extension methods for Car class. Contains common methods for example copyWith, toMap, fromMap, etc, that are common to all package's submodels.

on

Methods

copyWith({bool? isRightSide, String? sign}) Car
Creates a copy of this object with the given fields replaced with the new values. If the new values are null, the field is left unchanged. Otherwise, the field is replaced with the new value.
toMap() JsonObjectMap
Converts this object object to a JSON like map.

Static Methods

fromMap(JsonMap map) Car
Creates a new instance of this object from a JSON like map.