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