RgbEntity toEntity({String? appId}) { return RgbEntity( r: (r != null) ? r : null, g: (g != null) ? g : null, b: (b != null) ? b : null, opacity: (opacity != null) ? opacity : null, ); }