LifecyclePolicy.fromJson constructor
LifecyclePolicy.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LifecyclePolicy.fromJson(Map<String, dynamic> json) {
return LifecyclePolicy(
dateCreated: timeStampFromJson(json['DateCreated']),
dateModified: timeStampFromJson(json['DateModified']),
description: json['Description'] as String?,
executionRoleArn: json['ExecutionRoleArn'] as String?,
policyArn: json['PolicyArn'] as String?,
policyDetails: json['PolicyDetails'] != null
? PolicyDetails.fromJson(
json['PolicyDetails'] as Map<String, dynamic>)
: null,
policyId: json['PolicyId'] as String?,
state: (json['State'] as String?)?.toGettablePolicyStateValues(),
statusMessage: json['StatusMessage'] as String?,
tags: (json['Tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}