Addon.fromJson constructor
Implementation
factory Addon.fromJson(Map<String, dynamic> json) {
return Addon(
addonArn: json['addonArn'] as String?,
addonName: json['addonName'] as String?,
addonVersion: json['addonVersion'] as String?,
clusterName: json['clusterName'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
health: json['health'] != null
? AddonHealth.fromJson(json['health'] as Map<String, dynamic>)
: null,
modifiedAt: timeStampFromJson(json['modifiedAt']),
serviceAccountRoleArn: json['serviceAccountRoleArn'] as String?,
status: (json['status'] as String?)?.toAddonStatus(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}