SchemaPackage.fromJson constructor

SchemaPackage.fromJson(
  1. Map json_
)

Implementation

SchemaPackage.fromJson(core.Map json_)
    : this(
        ignoreMinOccurs: json_.containsKey('ignoreMinOccurs')
            ? json_['ignoreMinOccurs'] as core.bool
            : null,
        schemas: json_.containsKey('schemas')
            ? (json_['schemas'] as core.List)
                .map((value) => Hl7SchemaConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        schematizedParsingType: json_.containsKey('schematizedParsingType')
            ? json_['schematizedParsingType'] as core.String
            : null,
        types: json_.containsKey('types')
            ? (json_['types'] as core.List)
                .map((value) => Hl7TypesConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        unexpectedSegmentHandling:
            json_.containsKey('unexpectedSegmentHandling')
                ? json_['unexpectedSegmentHandling'] as core.String
                : null,
      );