toJson method

  1. @override
String? toJson(
  1. TileMode? object
)
override

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';
  }
}