TrustTokenOperationDoneEvent.fromJson constructor

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

Implementation

factory TrustTokenOperationDoneEvent.fromJson(Map<String, dynamic> json) {
  return TrustTokenOperationDoneEvent(
    status:
        TrustTokenOperationDoneEventStatus.fromJson(json['status'] as String),
    type: TrustTokenOperationType.fromJson(json['type'] as String),
    requestId: RequestId.fromJson(json['requestId'] as String),
    topLevelOrigin: json.containsKey('topLevelOrigin')
        ? json['topLevelOrigin'] as String
        : null,
    issuerOrigin: json.containsKey('issuerOrigin')
        ? json['issuerOrigin'] as String
        : null,
    issuedTokenCount: json.containsKey('issuedTokenCount')
        ? json['issuedTokenCount'] as int
        : null,
  );
}