deserializeAttrText method

AttributedText deserializeAttrText(
  1. Map<String, dynamic>? map, {
  2. AttributionDeserializeBuilder? deserializeBuilder,
})

Deserialization AttributedText

Implementation

AttributedText deserializeAttrText(Map<String, dynamic>? map,
    {AttributionDeserializeBuilder? deserializeBuilder}) {
  if (map == null) {
    return AttributedText(text: '');
  }
  return AttributedText(
    text: map[keyText] ?? '',
    spans: deserializeSpans(
      map[keySpans] ?? [],
      deserializeBuilder: deserializeBuilder,
    ),
  );
}