fromMap static method
Implementation
static SettingsCurrency? fromMap(Object? body) {
final source = readRecord(body);
if (source == null) return null;
return SettingsCurrency(
cashRoundingInterval: readDecimal(source['cash_rounding_interval']),
code: readText(source['code']),
conversionRate: readDecimal(source['conversion_rate']),
country: SettingsCurrencyCountry.fromMap(source['country']),
createdBy: readAny(source['created_by']),
createdOn: readText(source['created_on']),
decimalPlaces: readInteger(source['decimal_places']),
href: readText(source['href']),
id: readText(source['id']),
lastUpdatedBy: readAny(source['last_updated_by']),
lastUpdatedOn: readText(source['last_updated_on']),
name: readText(source['name']),
object: readText(source['object']),
rounding: readText(source['rounding']),
status: readText(source['status']),
symbol: readText(source['symbol']),
);
}