EnrollmentToken.fromJson constructor

EnrollmentToken.fromJson(
  1. Map json_
)

Implementation

EnrollmentToken.fromJson(core.Map json_)
    : this(
        additionalData: json_.containsKey('additionalData')
            ? json_['additionalData'] as core.String
            : null,
        allowPersonalUsage: json_.containsKey('allowPersonalUsage')
            ? json_['allowPersonalUsage'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        expirationTimestamp: json_.containsKey('expirationTimestamp')
            ? json_['expirationTimestamp'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        oneTimeOnly: json_.containsKey('oneTimeOnly')
            ? json_['oneTimeOnly'] as core.bool
            : null,
        policyName: json_.containsKey('policyName')
            ? json_['policyName'] as core.String
            : null,
        qrCode: json_.containsKey('qrCode')
            ? json_['qrCode'] as core.String
            : null,
        user: json_.containsKey('user')
            ? User.fromJson(
                json_['user'] as core.Map<core.String, core.dynamic>)
            : null,
        value:
            json_.containsKey('value') ? json_['value'] as core.String : null,
      );