InstallConstraint.fromJson constructor

InstallConstraint.fromJson(
  1. Map json_
)

Implementation

InstallConstraint.fromJson(core.Map json_)
    : this(
        chargingConstraint: json_.containsKey('chargingConstraint')
            ? json_['chargingConstraint'] as core.String
            : null,
        deviceIdleConstraint: json_.containsKey('deviceIdleConstraint')
            ? json_['deviceIdleConstraint'] as core.String
            : null,
        networkTypeConstraint: json_.containsKey('networkTypeConstraint')
            ? json_['networkTypeConstraint'] as core.String
            : null,
      );