toJson static method

Map<String, dynamic>? toJson(
  1. AccessTokenResult? element
)

Implementation

static Map<String, dynamic>? toJson(AccessTokenResult? element){
  if(element == null){
    return null;
  }
  return {
    'access_token': element.accessToken,
    'token_type': element.tokenType,
    'expires_in':element.expiresIn
  };
}