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