Resources.fromJson constructor

Resources.fromJson(
  1. Map _json
)

Implementation

Resources.fromJson(core.Map _json)
    : this(
        regions: _json.containsKey('regions')
            ? (_json['regions'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        virtualMachine: _json.containsKey('virtualMachine')
            ? VirtualMachine.fromJson(_json['virtualMachine']
                as core.Map<core.String, core.dynamic>)
            : null,
        zones: _json.containsKey('zones')
            ? (_json['zones'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );