CreateKeyPairResult.fromJson constructor

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

Implementation

factory CreateKeyPairResult.fromJson(Map<String, dynamic> json) {
  return CreateKeyPairResult(
    keyPair: json['keyPair'] != null
        ? KeyPair.fromJson(json['keyPair'] as Map<String, dynamic>)
        : null,
    operation: json['operation'] != null
        ? Operation.fromJson(json['operation'] as Map<String, dynamic>)
        : null,
    privateKeyBase64: json['privateKeyBase64'] as String?,
    publicKeyBase64: json['publicKeyBase64'] as String?,
  );
}