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