fromJson method
Implementation
@override
ButtonBarLayoutBehavior? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'constrained':
return ButtonBarLayoutBehavior.constrained;
case 'padded':
return ButtonBarLayoutBehavior.padded;
}
throw 'Unsuported_Json_Value';
}