TextElement.fromJson constructor

TextElement.fromJson(
  1. Map json_
)

Implementation

TextElement.fromJson(core.Map json_)
    : this(
        autoText: json_.containsKey('autoText')
            ? AutoText.fromJson(
                json_['autoText'] as core.Map<core.String, core.dynamic>)
            : null,
        endIndex: json_.containsKey('endIndex')
            ? json_['endIndex'] as core.int
            : null,
        paragraphMarker: json_.containsKey('paragraphMarker')
            ? ParagraphMarker.fromJson(json_['paragraphMarker']
                as core.Map<core.String, core.dynamic>)
            : null,
        startIndex: json_.containsKey('startIndex')
            ? json_['startIndex'] as core.int
            : null,
        textRun: json_.containsKey('textRun')
            ? TextRun.fromJson(
                json_['textRun'] as core.Map<core.String, core.dynamic>)
            : null,
      );