toJson method
Implementation
@override
String? toJson(Clip? object) {
if (object == null) return null;
switch (object) {
case Clip.antiAlias:
return 'antiAlias';
case Clip.antiAliasWithSaveLayer:
return 'antiAliasWithSaveLayer';
case Clip.hardEdge:
return 'hardEdge';
case Clip.none:
return 'none';
}
}