toJson method

String? toJson({
  1. List<AbsDocumentSerialize> customSerializeParser = const [],
  2. AttributionSerializeBuilder? attributionSerializeBuilder,
})

文档转为Json

Implementation

String? toJson({
  List<AbsDocumentSerialize> customSerializeParser = const [],
  AttributionSerializeBuilder? attributionSerializeBuilder,
}) {
  var dynamicJson = documentSerialize(
    this,
    customSerializeParser: customSerializeParser,
    attributionSerializeBuilder: attributionSerializeBuilder,
  );
  return jsonEncode(dynamicJson);
}