TokenRequestStatus.fromJson constructor
Creates a TokenRequestStatus from JSON data.
Implementation
factory TokenRequestStatus.fromJson(Map<String, dynamic> json) {
final tempExpirationTimestampJson = json['expirationTimestamp'];
final tempTokenJson = json['token'];
final DateTime tempExpirationTimestamp =
DateTime.parse(tempExpirationTimestampJson);
final String tempToken = tempTokenJson;
return TokenRequestStatus(
expirationTimestamp: tempExpirationTimestamp,
token: tempToken,
);
}