Segment.fromJson constructor

Segment.fromJson(
  1. Map json_
)

Implementation

Segment.fromJson(core.Map json_)
    : this(
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        segmentId: json_.containsKey('segmentId')
            ? json_['segmentId'] as core.String
            : null,
        setId:
            json_.containsKey('setId') ? json_['setId'] as core.String : null,
      );