fromJson method

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

Implementation

@override
NotchedShape? fromJson(String? json) {
  if (json == null) return null;

  switch (json) {
    case 'circular':
      return const CircularNotchedRectangle();
  }

  throw 'Unsuported_Json_Value';
}