SegmentGroupList.fromJson constructor

SegmentGroupList.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SegmentGroupList.fromJson(Map<String, dynamic> json) {
  return SegmentGroupList(
    groups: (json['Groups'] as List?)
        ?.whereNotNull()
        .map((e) => SegmentGroup.fromJson(e as Map<String, dynamic>))
        .toList(),
    include: (json['Include'] as String?)?.toInclude(),
  );
}