SshPublicKey.fromJson constructor

SshPublicKey.fromJson(
  1. Map json_
)

Implementation

SshPublicKey.fromJson(core.Map json_)
    : this(
        certType: json_.containsKey('certType')
            ? json_['certType'] as core.String
            : null,
        sshClientCert: json_.containsKey('sshClientCert')
            ? Secret.fromJson(
                json_['sshClientCert'] as core.Map<core.String, core.dynamic>)
            : null,
        sshClientCertPass: json_.containsKey('sshClientCertPass')
            ? Secret.fromJson(json_['sshClientCertPass']
                as core.Map<core.String, core.dynamic>)
            : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );