LifecyclePolicySummary.fromJson constructor

LifecyclePolicySummary.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LifecyclePolicySummary.fromJson(Map<String, dynamic> json) {
  return LifecyclePolicySummary(
    description: json['Description'] as String?,
    policyId: json['PolicyId'] as String?,
    policyType: (json['PolicyType'] as String?)?.toPolicyTypeValues(),
    state: (json['State'] as String?)?.toGettablePolicyStateValues(),
    tags: (json['Tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}