InsertTextRequest.fromJson constructor

InsertTextRequest.fromJson(
  1. Map json_
)

Implementation

InsertTextRequest.fromJson(core.Map json_)
    : this(
        endOfSegmentLocation: json_.containsKey('endOfSegmentLocation')
            ? EndOfSegmentLocation.fromJson(json_['endOfSegmentLocation']
                as core.Map<core.String, core.dynamic>)
            : null,
        location: json_.containsKey('location')
            ? Location.fromJson(
                json_['location'] as core.Map<core.String, core.dynamic>)
            : null,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
      );