PassConstraints.fromJson constructor

PassConstraints.fromJson(
  1. Map json_
)

Implementation

PassConstraints.fromJson(core.Map json_)
    : this(
        nfcConstraint: json_.containsKey('nfcConstraint')
            ? (json_['nfcConstraint'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        screenshotEligibility: json_.containsKey('screenshotEligibility')
            ? json_['screenshotEligibility'] as core.String
            : null,
      );