TextRun.fromJson constructor

TextRun.fromJson(
  1. Map json_
)

Implementation

TextRun.fromJson(core.Map json_)
  : this(
      content: json_['content'] as core.String?,
      style: json_.containsKey('style')
          ? TextStyle.fromJson(
              json_['style'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );