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,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] 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) => TextMapping.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );