serialize method

Map<String, Object> serialize()

Implementation

Map<String, Object> serialize() => {
      if (backgroundColor != null) "backgroundColor": backgroundColor!.value,
      if (foregroundColor != null) "foregroundColor": foregroundColor!.value,
    };