toJson method
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.
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['sdkAppId'] = this.sdkAppId;
data['userId'] = this.userId;
data['userSig'] = this.userSig;
data['roomId'] = this.roomId;
data['strRoomId'] = this.strRoomId;
data['role'] = this.role;
data['streamId'] = this.streamId;
data['userDefineRecordId'] = this.userDefineRecordId;
data['privateMapKey'] = this.privateMapKey;
data['businessInfo'] = this.businessInfo;
return data;
}