toMethodChannelMap method

Map<String, String> toMethodChannelMap()

Implementation

Map<String, String> toMethodChannelMap() {
  final resolvedConfig = resolved();
  return <String, String>{
    if (resolvedConfig.clientId != null)
      'clientId': resolvedConfig.clientId!,
    if (resolvedConfig.clientSecret != null)
      'clientSecret': resolvedConfig.clientSecret!,
    if (resolvedConfig.tenantId != null) 'tenantId': resolvedConfig.tenantId!,
    'resource': resolvedConfig.resource!,
    'collectionsResource': resolvedConfig.collectionsResource!,
  };
}