BillingRate.fromJson constructor
BillingRate.fromJson(
- Map json_
Implementation
BillingRate.fromJson(core.Map json_)
: this(
currencyCode: json_.containsKey('currencyCode')
? json_['currencyCode'] as core.String
: null,
endDate: json_.containsKey('endDate')
? json_['endDate'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
rateInMicros: json_.containsKey('rateInMicros')
? json_['rateInMicros'] as core.String
: null,
startDate: json_.containsKey('startDate')
? json_['startDate'] as core.String
: null,
tieredRates: json_.containsKey('tieredRates')
? (json_['tieredRates'] as core.List)
.map((value) => BillingRateTieredRate.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
unitOfMeasure: json_.containsKey('unitOfMeasure')
? json_['unitOfMeasure'] as core.String
: null,
);