toMap method

Map<String, String> toMap()

Implementation

Map<String, String> toMap() {
  var map = {"refresh_token": refreshToken};
  if (clientId != null) map = {"client_id": clientId!, ...map};
  if (clientSecret != null) map = {"client_secret": clientSecret!, ...map};
  if (redirectUrl != null) map = {"redirect_uri": redirectUrl!, ...map};
  return map;
}