LoadInstanceAuthInfoResponse.fromJson constructor

LoadInstanceAuthInfoResponse.fromJson(
  1. Map json_
)

Implementation

LoadInstanceAuthInfoResponse.fromJson(core.Map json_)
    : this(
        sshKeys: json_.containsKey('sshKeys')
            ? (json_['sshKeys'] as core.List)
                .map((value) => SSHKey.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        userAccounts: json_.containsKey('userAccounts')
            ? (json_['userAccounts'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  UserAccount.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );