toJson method
Implementation
@override
String? toJson(BlendMode? object) {
if (object == null) return null;
switch (object) {
case BlendMode.clear:
return 'clear';
case BlendMode.color:
return 'color';
case BlendMode.colorBurn:
return 'colorBurn';
case BlendMode.colorDodge:
return 'colorDodge';
case BlendMode.darken:
return 'darken';
case BlendMode.difference:
return 'difference';
case BlendMode.dst:
return 'dst';
case BlendMode.dstATop:
return 'dstATop';
case BlendMode.dstIn:
return 'dstIn';
case BlendMode.dstOut:
return 'dstOut';
case BlendMode.dstOver:
return 'dstOver';
case BlendMode.exclusion:
return 'exclusion';
case BlendMode.hardLight:
return 'hardLight';
case BlendMode.hue:
return 'hue';
case BlendMode.lighten:
return 'lighten';
case BlendMode.luminosity:
return 'luminosity';
case BlendMode.modulate:
return 'modulate';
case BlendMode.multiply:
return 'multiply';
case BlendMode.overlay:
return 'overlay';
case BlendMode.plus:
return 'plus';
case BlendMode.saturation:
return 'saturation';
case BlendMode.screen:
return 'screen';
case BlendMode.softLight:
return 'softLight';
case BlendMode.src:
return 'src';
case BlendMode.srcATop:
return 'srcATop';
case BlendMode.srcIn:
return 'srcIn';
case BlendMode.srcOut:
return 'srcOut';
case BlendMode.srcOver:
return 'srcOver';
case BlendMode.xor:
return 'xor';
}
}