fromJson method

  1. @override
TileMode? fromJson(
  1. String? json
)
override

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