GetPolicyResult.fromMap constructor
GetPolicyResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetPolicyResult.fromMap(Map<String, dynamic> map) {
return GetPolicyResult(
arn: (() { final guardedValue = map['arn']; if (guardedValue == null) return null; return guardedValue as String; })(),
attachmentCount: (() { final guardedValue = map['attachmentCount']; if (guardedValue == null) return null; return (guardedValue as num).toInt(); })(),
description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return guardedValue as String; })(),
id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
path: (() { final guardedValue = map['path']; if (guardedValue == null) return null; return guardedValue as String; })(),
pathPrefix: (() { final guardedValue = map['pathPrefix']; if (guardedValue == null) return null; return guardedValue as String; })(),
policy: (() { final guardedValue = map['policy']; if (guardedValue == null) return null; return guardedValue as String; })(),
policyId: (() { final guardedValue = map['policyId']; if (guardedValue == null) return null; return guardedValue as String; })(),
tags: (() { final guardedValue = map['tags']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
);
}