KeyValueFormat.fromJson constructor

KeyValueFormat.fromJson(
  1. Map json_
)

Implementation

KeyValueFormat.fromJson(core.Map json_)
    : this(
        position: json_.containsKey('position')
            ? TextPosition.fromJson(
                json_['position'] as core.Map<core.String, core.dynamic>)
            : null,
        textFormat: json_.containsKey('textFormat')
            ? TextFormat.fromJson(
                json_['textFormat'] as core.Map<core.String, core.dynamic>)
            : null,
      );