TextProperty.fromJson constructor

TextProperty.fromJson(
  1. Map json_
)

Implementation

TextProperty.fromJson(core.Map json_)
    : this(
        detectedBreak: json_.containsKey('detectedBreak')
            ? DetectedBreak.fromJson(
                json_['detectedBreak'] as core.Map<core.String, core.dynamic>)
            : null,
        detectedLanguages: json_.containsKey('detectedLanguages')
            ? (json_['detectedLanguages'] as core.List)
                .map((value) => DetectedLanguage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );