toJson method
Implementation
@override
String? toJson(HitTestBehavior? object) {
if (object == null) return null;
switch (object) {
case HitTestBehavior.deferToChild:
return 'deferToChild';
case HitTestBehavior.opaque:
return 'opaque';
case HitTestBehavior.translucent:
return 'translucent';
}
}