DotnetSettings.fromJson constructor

DotnetSettings.fromJson(
  1. Map json_
)

Implementation

DotnetSettings.fromJson(core.Map json_)
    : this(
        common: json_.containsKey('common')
            ? CommonLanguageSettings.fromJson(
                json_['common'] as core.Map<core.String, core.dynamic>)
            : null,
        forcedNamespaceAliases: json_.containsKey('forcedNamespaceAliases')
            ? (json_['forcedNamespaceAliases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        handwrittenSignatures: json_.containsKey('handwrittenSignatures')
            ? (json_['handwrittenSignatures'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        ignoredResources: json_.containsKey('ignoredResources')
            ? (json_['ignoredResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        renamedResources: json_.containsKey('renamedResources')
            ? (json_['renamedResources']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        renamedServices: json_.containsKey('renamedServices')
            ? (json_['renamedServices']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );