toJson method
Implementation
@override
String? toJson(ImageRepeat? object) {
if (object == null) return null;
switch (object) {
case ImageRepeat.noRepeat:
return 'noRepeat';
case ImageRepeat.repeat:
return 'repeat';
case ImageRepeat.repeatX:
return 'repeatX';
case ImageRepeat.repeatY:
return 'repeatY';
}
}