@override Object toJson() => { if (bitmap.isNotDefault) 'bitmap': encodeBytes(bitmap), if (padding.isNotDefault) 'padding': padding, };