CapacityCommitment.fromJson constructor

CapacityCommitment.fromJson(
  1. Map json_
)

Implementation

CapacityCommitment.fromJson(core.Map json_)
    : this(
        commitmentEndTime: json_.containsKey('commitmentEndTime')
            ? json_['commitmentEndTime'] as core.String
            : null,
        commitmentStartTime: json_.containsKey('commitmentStartTime')
            ? json_['commitmentStartTime'] as core.String
            : null,
        edition: json_.containsKey('edition')
            ? json_['edition'] as core.String
            : null,
        failureStatus: json_.containsKey('failureStatus')
            ? Status.fromJson(
                json_['failureStatus'] as core.Map<core.String, core.dynamic>)
            : null,
        isFlatRate: json_.containsKey('isFlatRate')
            ? json_['isFlatRate'] as core.bool
            : null,
        multiRegionAuxiliary: json_.containsKey('multiRegionAuxiliary')
            ? json_['multiRegionAuxiliary'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        plan: json_.containsKey('plan') ? json_['plan'] as core.String : null,
        renewalPlan: json_.containsKey('renewalPlan')
            ? json_['renewalPlan'] as core.String
            : null,
        slotCount: json_.containsKey('slotCount')
            ? json_['slotCount'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );