toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final expiresInMs = this.expiresInMs;
  final refreshToken = this.refreshToken;
  return {
    'access_token': accessToken,
    if (expiresInMs != null) 'expires_in_ms': expiresInMs,
    if (refreshToken != null) 'refresh_token': refreshToken,
  };
}