SegmentGroup.fromJson constructor
SegmentGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SegmentGroup.fromJson(Map<String, dynamic> json) {
return SegmentGroup(
dimensions: (json['Dimensions'] as List?)
?.whereNotNull()
.map((e) => SegmentDimensions.fromJson(e as Map<String, dynamic>))
.toList(),
sourceSegments: (json['SourceSegments'] as List?)
?.whereNotNull()
.map((e) => SegmentReference.fromJson(e as Map<String, dynamic>))
.toList(),
sourceType: (json['SourceType'] as String?)?.toSourceType(),
type: (json['Type'] as String?)?.toType(),
);
}