toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() => <String, Object?>{
  'ephemeralKeyEndpoint': ephemeralKeyEndpoint.toString(),
  'ephemeralKeyRequest': <String, Object?>{
    'method': requestMethod,
    if (requestHeaders.isNotEmpty) 'headers': requestHeaders,
    'credentials': requestCredentials.value,
  },
  if (apiEndpoint != null) 'apiEndpoint': apiEndpoint.toString(),
  if (authEndpoint != null) 'authEndpoint': authEndpoint.toString(),
  if (activityEndpoint != null)
    'activityEndpoint': activityEndpoint.toString(),
};