BaseDocumentJsonSerialize<T extends DocumentNode> class abstract

Encapsulates the serialization base class

  • 子类不用进行'节点'类型判断。
  • 封装通用的序列化和反序列化属性方法.
  • Subclasses do not need to make 'node' type judgments.
  • Encapsulates generic serialization and deserialization property methods
Implemented types
Implementers

Constructors

BaseDocumentJsonSerialize()

Properties

customAttributionDeserializeBuilder AttributionDeserializeBuilder?
no getter
customAttributionSerializeBuilder AttributionSerializeBuilder?
no getter
hashCode int
The hash code for this object.
no setterinherited
keyAttributedText String
final
keyAttribution String
final
keyAttributionId String
final
final
keyAttributionName String
final
keyImageAltText String
final
keyImageUrl String
final
keyListType String
final
keyMetadata String
final
keyNodeId String
final
keyNodeInfo String
final
keyNodeType String
final
keySpanOffset String
final
keySpans String
final
keySpanType String
final
keyTaskComplete String
final
keyText String
final
nodeId → dynamic
快速创建id,Quickly create IDs
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

defaultAttributionDeserializeBuilder(Map<String, dynamic> map) → Attribution?
默认属性反序列化构建器
defaultAttributionSerializeBuilder(Attribution attribution) Map<String, dynamic>?
默认属性序列化构建器
deserialize(Map<String, dynamic> map) → DocumentNode?
Deserialization
override
deserializeAttrText(Map<String, dynamic>? map, {AttributionDeserializeBuilder? deserializeBuilder}) → AttributedText
Deserialization AttributedText
deserializeMetadata(Map<String, dynamic>? metadata, {dynamic covert(String key, dynamic value)?, List<NamedAttribution>? customNameAttribution}) Map<String, dynamic>
Deserialized Metadata, which encapsulates common types. Custom metadata needs to be converted by covert.
deserializeNode(Map<String, dynamic> map) → T?
Deserialize the node
deserializeSingleColumnLayoutMetadata(Map<String, dynamic> map) Map<String, dynamic>
deserializeSpans(List spans, {AttributionDeserializeBuilder? deserializeBuilder}) → AttributedSpans
反序列化AttributedSpans的数据
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(DocumentNode node) Map<String, dynamic>?
Serialization
override
serializeAttrText(AttributedText attributedText, {AttributionSerializeBuilder? serializeBuilder}) Map<String, dynamic>
Serialize the AttributedText
serializeMetadata(Map<String, dynamic>? metadata, {dynamic covert(String key, dynamic value)?}) Map<String, dynamic>
Serializing metadata, which encapsulates generic data transformations. Custom metadata needs to be converted via the covert callback method.
serializeNode(T node) Map<String, dynamic>?
Serialize node data
serializeSingleColumnLayoutMetadata(Map<String, dynamic> map) Map<String, dynamic>
{ "width":213, "padding":-1,0,0,0,0 //-1 is EdgeInsets type , -2 is EdgeInsetsDirectional type. }
serializeSpans(AttributedSpans spans, {AttributionSerializeBuilder? serializeBuilder}) List
AttributedSpans(attributions: SpanMarker(attribution: LinkAttribution(url: Uri.parse("www.google.com")), offset: 0, markerType: SpanMarkerType.start), SpanMarker(attribution: LinkAttribution(url: Uri.parse("www.google.com")), offset: 7, markerType: SpanMarkerType.end), )
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited