toJson method

String toJson()

JSON represention of token.

Implementation

String toJson() {
  return jsonEncode({
    FIELD_ACCESS_TOKEN: accessToken,
    FIELD_REFRESH_TOKEN: refreshToken,
    FIELD_EXPIRES: expires
  });
}