CompensationEntry.fromJson constructor
CompensationEntry.fromJson(
- Map json_
Implementation
CompensationEntry.fromJson(core.Map json_)
: this(
amount: json_.containsKey('amount')
? Money.fromJson(
json_['amount'] as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
expectedUnitsPerYear: json_.containsKey('expectedUnitsPerYear')
? (json_['expectedUnitsPerYear'] as core.num).toDouble()
: null,
range: json_.containsKey('range')
? CompensationRange.fromJson(
json_['range'] as core.Map<core.String, core.dynamic>)
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
unit: json_.containsKey('unit') ? json_['unit'] as core.String : null,
);