GroupOrSegment.fromJson constructor

GroupOrSegment.fromJson(
  1. Map json_
)

Implementation

GroupOrSegment.fromJson(core.Map json_)
    : this(
        group: json_.containsKey('group')
            ? SchemaGroup.fromJson(
                json_['group'] as core.Map<core.String, core.dynamic>)
            : null,
        segment: json_.containsKey('segment')
            ? SchemaSegment.fromJson(
                json_['segment'] as core.Map<core.String, core.dynamic>)
            : null,
      );