BareMetalMachineDrainStatus.fromJson constructor

BareMetalMachineDrainStatus.fromJson(
  1. Map json_
)

Implementation

BareMetalMachineDrainStatus.fromJson(core.Map json_)
    : this(
        drainedMachines: json_.containsKey('drainedMachines')
            ? (json_['drainedMachines'] as core.List)
                .map((value) => BareMetalDrainedMachine.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        drainingMachines: json_.containsKey('drainingMachines')
            ? (json_['drainingMachines'] as core.List)
                .map((value) => BareMetalDrainingMachine.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );