JavaSettings.fromJson constructor

JavaSettings.fromJson(
  1. Map json_
)

Implementation

JavaSettings.fromJson(core.Map json_)
    : this(
        common: json_.containsKey('common')
            ? CommonLanguageSettings.fromJson(
                json_['common'] as core.Map<core.String, core.dynamic>)
            : null,
        libraryPackage: json_.containsKey('libraryPackage')
            ? json_['libraryPackage'] as core.String
            : null,
        serviceClassNames: json_.containsKey('serviceClassNames')
            ? (json_['serviceClassNames']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );