UpgradeInfo.fromJson constructor

UpgradeInfo.fromJson(
  1. Map json_
)

Implementation

UpgradeInfo.fromJson(core.Map json_)
    : this(
        buildConfig: json_.containsKey('buildConfig')
            ? BuildConfig.fromJson(
                json_['buildConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        eventTrigger: json_.containsKey('eventTrigger')
            ? EventTrigger.fromJson(
                json_['eventTrigger'] as core.Map<core.String, core.dynamic>)
            : null,
        serviceConfig: json_.containsKey('serviceConfig')
            ? ServiceConfig.fromJson(
                json_['serviceConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        upgradeState: json_.containsKey('upgradeState')
            ? json_['upgradeState'] as core.String
            : null,
      );