toJson method
JSON represention of token.
Implementation
String toJson() {
return jsonEncode({
FIELD_ACCESS_TOKEN: accessToken,
FIELD_REFRESH_TOKEN: refreshToken,
FIELD_EXPIRES: expires
});
}
JSON represention of token.
String toJson() {
return jsonEncode({
FIELD_ACCESS_TOKEN: accessToken,
FIELD_REFRESH_TOKEN: refreshToken,
FIELD_EXPIRES: expires
});
}