Association.fromJson constructor
Association.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Association.fromJson(Map<String, dynamic> json) {
return Association(
associationId: json['AssociationId'] as String?,
associationName: json['AssociationName'] as String?,
associationVersion: json['AssociationVersion'] as String?,
documentVersion: json['DocumentVersion'] as String?,
instanceId: json['InstanceId'] as String?,
lastExecutionDate: timeStampFromJson(json['LastExecutionDate']),
name: json['Name'] as String?,
overview: json['Overview'] != null
? AssociationOverview.fromJson(
json['Overview'] as Map<String, dynamic>)
: null,
scheduleExpression: json['ScheduleExpression'] as String?,
targets: (json['Targets'] as List?)
?.whereNotNull()
.map((e) => Target.fromJson(e as Map<String, dynamic>))
.toList(),
);
}