Environment.fromJson constructor

Environment.fromJson(
  1. Map json_
)

Implementation

Environment.fromJson(core.Map json_)
    : this(
        dockerImage: json_.containsKey('dockerImage')
            ? json_['dockerImage'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        publicKeys: json_.containsKey('publicKeys')
            ? (json_['publicKeys'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        sshHost: json_.containsKey('sshHost')
            ? json_['sshHost'] as core.String
            : null,
        sshPort: json_.containsKey('sshPort')
            ? json_['sshPort'] as core.int
            : null,
        sshUsername: json_.containsKey('sshUsername')
            ? json_['sshUsername'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        webHost: json_.containsKey('webHost')
            ? json_['webHost'] as core.String
            : null,
      );