CanceledStateContext.fromJson constructor

CanceledStateContext.fromJson(
  1. Map json_
)

Implementation

CanceledStateContext.fromJson(core.Map json_)
    : this(
        developerInitiatedCancellation:
            json_.containsKey('developerInitiatedCancellation')
                ? DeveloperInitiatedCancellation.fromJson(
                    json_['developerInitiatedCancellation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        replacementCancellation: json_.containsKey('replacementCancellation')
            ? ReplacementCancellation.fromJson(
                json_['replacementCancellation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        systemInitiatedCancellation:
            json_.containsKey('systemInitiatedCancellation')
                ? SystemInitiatedCancellation.fromJson(
                    json_['systemInitiatedCancellation']
                        as core.Map<core.String, core.dynamic>)
                : null,
        userInitiatedCancellation:
            json_.containsKey('userInitiatedCancellation')
                ? UserInitiatedCancellation.fromJson(
                    json_['userInitiatedCancellation']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );