GrantListEntry.fromJson constructor
GrantListEntry.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GrantListEntry.fromJson(Map<String, dynamic> json) {
return GrantListEntry(
constraints: json['Constraints'] != null
? GrantConstraints.fromJson(
json['Constraints'] as Map<String, dynamic>)
: null,
creationDate: timeStampFromJson(json['CreationDate']),
grantId: json['GrantId'] as String?,
granteePrincipal: json['GranteePrincipal'] as String?,
issuingAccount: json['IssuingAccount'] as String?,
keyId: json['KeyId'] as String?,
name: json['Name'] as String?,
operations: (json['Operations'] as List?)
?.whereNotNull()
.map((e) => (e as String).toGrantOperation())
.toList(),
retiringPrincipal: json['RetiringPrincipal'] as String?,
);
}