QueuedResourceState.fromJson constructor

QueuedResourceState.fromJson(
  1. Map json_
)

Implementation

QueuedResourceState.fromJson(core.Map json_)
    : this(
        acceptedData: json_.containsKey('acceptedData')
            ? AcceptedData.fromJson(
                json_['acceptedData'] as core.Map<core.String, core.dynamic>)
            : null,
        activeData: json_.containsKey('activeData')
            ? ActiveData.fromJson(
                json_['activeData'] as core.Map<core.String, core.dynamic>)
            : null,
        creatingData: json_.containsKey('creatingData')
            ? CreatingData.fromJson(
                json_['creatingData'] as core.Map<core.String, core.dynamic>)
            : null,
        deletingData: json_.containsKey('deletingData')
            ? DeletingData.fromJson(
                json_['deletingData'] as core.Map<core.String, core.dynamic>)
            : null,
        failedData: json_.containsKey('failedData')
            ? FailedData.fromJson(
                json_['failedData'] as core.Map<core.String, core.dynamic>)
            : null,
        provisioningData: json_.containsKey('provisioningData')
            ? ProvisioningData.fromJson(json_['provisioningData']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateInitiator: json_.containsKey('stateInitiator')
            ? json_['stateInitiator'] as core.String
            : null,
        suspendedData: json_.containsKey('suspendedData')
            ? SuspendedData.fromJson(
                json_['suspendedData'] as core.Map<core.String, core.dynamic>)
            : null,
        suspendingData: json_.containsKey('suspendingData')
            ? SuspendingData.fromJson(json_['suspendingData']
                as core.Map<core.String, core.dynamic>)
            : null,
      );