TextStream.fromJson constructor

TextStream.fromJson(
  1. Map _json
)

Implementation

TextStream.fromJson(core.Map _json)
    : this(
        codec:
            _json.containsKey('codec') ? _json['codec'] as core.String : null,
        languageCode: _json.containsKey('languageCode')
            ? _json['languageCode'] as core.String
            : null,
        mapping: _json.containsKey('mapping')
            ? (_json['mapping'] as core.List)
                .map((value) => TextAtom.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );