AutoInstallConstraint.fromJson constructor

AutoInstallConstraint.fromJson(
  1. Map json_
)

Implementation

AutoInstallConstraint.fromJson(core.Map json_)
    : this(
        chargingStateConstraint: json_.containsKey('chargingStateConstraint')
            ? json_['chargingStateConstraint'] as core.String
            : null,
        deviceIdleStateConstraint:
            json_.containsKey('deviceIdleStateConstraint')
                ? json_['deviceIdleStateConstraint'] as core.String
                : null,
        networkTypeConstraint: json_.containsKey('networkTypeConstraint')
            ? json_['networkTypeConstraint'] as core.String
            : null,
      );