toJson method

Map<String, dynamic> toJson()

Convert the current object to JSON.

Returns a Map with key-value pairs representing the object's data. Each key corresponds to a property of the object. Each value is the value of that property. The values may be basic types (e.g. String, int, bool, etc.), Types that can be directly converted to JSON (e.g. List, Map), or objects that implement the toJson method.

The Map can be converted directly to a JSON string.


Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['videoEncodedWidth'] = this.videoEncodedWidth;
  data['videoEncodedHeight'] = this.videoEncodedHeight;
  data['videoEncodedFPS'] = this.videoEncodedFPS;
  data['videoEncodedGOP'] = this.videoEncodedGOP;
  data['videoEncodedKbps'] = this.videoEncodedKbps;
  data['audioEncodedSampleRate'] = this.audioEncodedSampleRate;
  data['audioEncodedChannelNum'] = this.audioEncodedChannelNum;
  data['audioEncodedKbps'] = this.audioEncodedKbps;
  data['audioEncodedCodecType'] = this.audioEncodedCodecType;
  return data;