SchemaGroup.fromJson constructor

SchemaGroup.fromJson(
  1. Map json_
)

Implementation

SchemaGroup.fromJson(core.Map json_)
    : this(
        choice:
            json_.containsKey('choice') ? json_['choice'] as core.bool : null,
        maxOccurs: json_.containsKey('maxOccurs')
            ? json_['maxOccurs'] as core.int
            : null,
        members: json_.containsKey('members')
            ? (json_['members'] as core.List)
                .map((value) => GroupOrSegment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        minOccurs: json_.containsKey('minOccurs')
            ? json_['minOccurs'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );