toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final colorSpace = this.colorSpace;
  final colorSpaceUsage = this.colorSpaceUsage;
  final selectorSettings = this.selectorSettings;
  return {
    if (colorSpace != null) 'colorSpace': colorSpace.toValue(),
    if (colorSpaceUsage != null) 'colorSpaceUsage': colorSpaceUsage.toValue(),
    if (selectorSettings != null) 'selectorSettings': selectorSettings,
  };
}