toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    ...?coolGray?.toJson(),
    ...?red?.toJson(),
    ...?rose?.toJson(),
    ...?pink?.toJson(),
    ...?fuchsia?.toJson(),
    ...?purple?.toJson(),
    ...?indigo?.toJson(),
    ...?blue?.toJson(),
    ...?lightBlue?.toJson(),
    ...?darkBlue?.toJson(),
    ...?cyan?.toJson(),
    ...?emerald?.toJson(),
    ...?green?.toJson(),
    ...?lime?.toJson(),
    ...?yellow?.toJson(),
    ...?amber?.toJson(),
    ...?orange?.toJson(),
    ...?warmGray?.toJson(),
    ...?trueGray?.toJson(),
    ...?gray?.toJson(),
    ...?blueGray?.toJson(),
    ...?dark?.toJson(),
    ...?text?.toJson(),
    ...?white?.toJson(),
    ...?black?.toJson(),
    ...?primary?.toJson()
  };
}