OriginTrialTokenWithStatus.fromJson constructor

OriginTrialTokenWithStatus.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OriginTrialTokenWithStatus.fromJson(Map<String, dynamic> json) {
  return OriginTrialTokenWithStatus(
    rawTokenText: json['rawTokenText'] as String,
    parsedToken:
        json.containsKey('parsedToken')
            ? OriginTrialToken.fromJson(
              json['parsedToken'] as Map<String, dynamic>,
            )
            : null,
    status: OriginTrialTokenStatus.fromJson(json['status'] as String),
  );
}