toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (bitrateBps != null) 'bitrateBps': bitrateBps!,
      if (channelCount != null) 'channelCount': channelCount!,
      if (channelLayout != null) 'channelLayout': channelLayout!,
      if (codec != null) 'codec': codec!,
      if (mapping != null)
        'mapping': mapping!.map((value) => value.toJson()).toList(),
      if (sampleRateHertz != null) 'sampleRateHertz': sampleRateHertz!,
    };