$TextSpan.fromJson constructor

$TextSpan.fromJson(
  1. Map json_
)

Implementation

$TextSpan.fromJson(core.Map json_)
    : this(
        beginOffset: json_.containsKey('beginOffset')
            ? json_['beginOffset'] as core.int
            : null,
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
      );