CapitalExtension extension

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

on

Properties

name → String

Available on Capital, provided by the CapitalExtension extension

Returns the de facto name of the capital.
no setter
officialName → String

Available on Capital, provided by the CapitalExtension extension

Returns the de jure official name of the capital.
no setter

Methods

copyWith({String? deFacto, String? deJure, String? third}) → Capital

Available on Capital, provided by the CapitalExtension extension

Creates a copy of this object with the given fields replaced with the new values.
toMap() → Map<String, String>

Available on Capital, provided by the CapitalExtension extension

Converts this object object to a JSON like map.

Static Methods

fromMap(JsonMap map) → Capital

Available on Capital, provided by the CapitalExtension extension

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