Grant.fromJson constructor
Implementation
factory Grant.fromJson(Map<String, dynamic> json) {
return Grant(
grantArn: json['GrantArn'] as String,
grantName: json['GrantName'] as String,
grantStatus: (json['GrantStatus'] as String).toGrantStatus(),
grantedOperations: (json['GrantedOperations'] as List)
.whereNotNull()
.map((e) => (e as String).toAllowedOperation())
.toList(),
granteePrincipalArn: json['GranteePrincipalArn'] as String,
homeRegion: json['HomeRegion'] as String,
licenseArn: json['LicenseArn'] as String,
parentArn: json['ParentArn'] as String,
version: json['Version'] as String,
statusReason: json['StatusReason'] as String?,
);
}