toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (opacity != null) 'opacity': opacity,
if (filter != null) 'filter': filter,
'fit': fit.name,
if (title != null) 'title': title,
if (decoding != null) 'decoding': decoding?.name,
};
}