SecureDelegation.fromJSON constructor
SecureDelegation.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory SecureDelegation.fromJSON(Map<String, dynamic> data) {
return SecureDelegation(
AccessLevel.fromJSON(data["permissions"]),
delegator: (data["delegator"] as String?),
delegate: (data["delegate"] as String?),
secretIds: (data["secretIds"] as List<dynamic>).map((x0) => (x0 as Base64String) ).toSet(),
encryptionKeys: (data["encryptionKeys"] as List<dynamic>).map((x0) => (x0 as Base64String) ).toSet(),
owningEntityIds: (data["owningEntityIds"] as List<dynamic>).map((x0) => (x0 as Base64String) ).toSet(),
parentDelegations: (data["parentDelegations"] as List<dynamic>).map((x0) => (x0 as SecureDelegationKeyString) ).toSet(),
exchangeDataId: (data["exchangeDataId"] as String?),
);
}