fromJson static method
Implementation
static IrSizing fromJson(Object? json) => switch (json) {
num v => IrSizing.fixed(v.toDouble()),
'hug' => const IrSizing.hug(),
'fill' => const IrSizing.fill(),
_ => throw FormatException('Bad sizing: $json'),
};