toJson method
Implementation
Map<String, dynamic> toJson() {
final dimensions = this.dimensions;
final sourceSegments = this.sourceSegments;
final sourceType = this.sourceType;
final type = this.type;
return {
if (dimensions != null) 'Dimensions': dimensions,
if (sourceSegments != null) 'SourceSegments': sourceSegments,
if (sourceType != null) 'SourceType': sourceType.toValue(),
if (type != null) 'Type': type.toValue(),
};
}