TextConfig.fromJson constructor

TextConfig.fromJson(
  1. Map json_
)

Implementation

TextConfig.fromJson(core.Map json_)
    : this(
        additionalTransformations:
            json_.containsKey('additionalTransformations')
                ? (json_['additionalTransformations'] as core.List)
                    .map((value) => InfoTypeTransformation.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        excludeInfoTypes: json_.containsKey('excludeInfoTypes')
            ? (json_['excludeInfoTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        transformations: json_.containsKey('transformations')
            ? (json_['transformations'] as core.List)
                .map((value) => InfoTypeTransformation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );