fromJson method
Implementation
@override
TileMode? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'clamp':
return TileMode.clamp;
case 'decal':
return TileMode.decal;
case 'mirror':
return TileMode.mirror;
case 'repeated':
return TileMode.repeated;
}
throw 'Unsuported_Json_Value';
}