Inventory.fromJson constructor
Inventory.fromJson(
- Map _json
Implementation
Inventory.fromJson(core.Map _json)
: this(
items: _json.containsKey('items')
? (_json['items'] as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
InventoryItem.fromJson(
item as core.Map<core.String, core.dynamic>),
),
)
: null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
osInfo: _json.containsKey('osInfo')
? InventoryOsInfo.fromJson(
_json['osInfo'] as core.Map<core.String, core.dynamic>)
: null,
updateTime: _json.containsKey('updateTime')
? _json['updateTime'] as core.String
: null,
);