sourceInfoToJson method

List<Map<String, dynamic>> sourceInfoToJson()

Convert TRTCScreenCaptureSourceList to Json format

Implementation

List<Map<String, dynamic>> sourceInfoToJson() {
  List<Map<String, dynamic>> listJson = [];
  if (this.sourceInfo.isNotEmpty) {
    for (var sourceInfo in this.sourceInfo) {
      listJson.add(sourceInfo.toJson());
    }
  }
  return listJson;
}