toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      if (manageAudioFocus != null) 'manageAudioFocus': manageAudioFocus!,
      if (androidAudioMode != null)
        'androidAudioMode': androidAudioMode!.value,
      if (androidAudioFocusMode != null)
        'androidAudioFocusMode': androidAudioFocusMode!.value,
      if (androidAudioStreamType != null)
        'androidAudioStreamType': androidAudioStreamType!.value,
      if (androidAudioAttributesUsageType != null)
        'androidAudioAttributesUsageType':
            androidAudioAttributesUsageType!.value,
      if (androidAudioAttributesContentType != null)
        'androidAudioAttributesContentType':
            androidAudioAttributesContentType!.value,
      if (forceHandleAudioRouting != null)
        'forceHandleAudioRouting': forceHandleAudioRouting!,
    };