Policy.fromJson constructor
Policy.fromJson(
- Map json_
Implementation
Policy.fromJson(core.Map json_)
: this(
autoUpdatePolicy: json_.containsKey('autoUpdatePolicy')
? json_['autoUpdatePolicy'] as core.String
: null,
deviceReportPolicy: json_.containsKey('deviceReportPolicy')
? json_['deviceReportPolicy'] as core.String
: null,
maintenanceWindow: json_.containsKey('maintenanceWindow')
? MaintenanceWindow.fromJson(json_['maintenanceWindow']
as core.Map<core.String, core.dynamic>)
: null,
productAvailabilityPolicy:
json_.containsKey('productAvailabilityPolicy')
? json_['productAvailabilityPolicy'] as core.String
: null,
productPolicy: json_.containsKey('productPolicy')
? (json_['productPolicy'] as core.List)
.map((value) => ProductPolicy.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);