fromJson static method
Implementation
static IrTextStyle fromJson(Object? json) {
final m = json as Map<String, Object?>;
return IrTextStyle(
fontFamily: m['fontFamily'] as String,
fontSize: _d(m['fontSize'])!,
fontWeight: (m['fontWeight'] as num?)?.toInt() ?? 400,
italic: m['italic'] as bool? ?? false,
color: IrColor.fromJson(m['color']),
lineHeight: _d(m['lineHeight']),
letterSpacing: _d(m['letterSpacing']) ?? 0,
token: m['token'] as String?,
);
}