PrimaryInstanceSettings.fromJson constructor

PrimaryInstanceSettings.fromJson(
  1. Map json_
)

Implementation

PrimaryInstanceSettings.fromJson(core.Map json_)
    : this(
        databaseFlags: json_.containsKey('databaseFlags')
            ? (json_['databaseFlags'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        machineConfig: json_.containsKey('machineConfig')
            ? MachineConfig.fromJson(
                json_['machineConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        privateIp: json_.containsKey('privateIp')
            ? json_['privateIp'] as core.String
            : null,
      );