BareMetalAdminMachineDrainStatus.fromJson constructor

BareMetalAdminMachineDrainStatus.fromJson(
  1. Map json_
)

Implementation

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