toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'shapes': shapes?.toJson(),
    'colors': colors?.toJson(),
  };
}