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

Available on Car, provided by the CarExtension extension

Creates a copy of this object with the given fields replaced with the new values.
toMap() JsonObjectMap

Available on Car, provided by the CarExtension extension

Converts this object object to a JSON like map.

Static Methods

fromMap(JsonMap map) Car

Available on Car, provided by the CarExtension extension

Creates a new instance of this object from a JSON like map.