serialize method

Map<String, Object> serialize()

Implementation

Map<String, Object> serialize() => {
      if (color != null) 'color': color!.value,
      if (width != null) 'width': width!,
    };