toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accessToken != null) 'accessToken': accessToken!,
      if (clientId != null) 'clientId': clientId!,
      if (clientSecret != null) 'clientSecret': clientSecret!,
      if (password != null) 'password': password!,
      if (requestType != null) 'requestType': requestType!,
      if (scope != null) 'scope': scope!,
      if (tokenEndpoint != null) 'tokenEndpoint': tokenEndpoint!,
      if (tokenParams != null) 'tokenParams': tokenParams!,
      if (username != null) 'username': username!,
    };