toJson method

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

Implementation

@override
String? toJson(Clip? object) {
  if (object == null) return null;

  switch (object) {
    case Clip.antiAlias:
      return 'antiAlias';
    case Clip.antiAliasWithSaveLayer:
      return 'antiAliasWithSaveLayer';
    case Clip.hardEdge:
      return 'hardEdge';
    case Clip.none:
      return 'none';
  }
}