fromJson method
Implementation
@override
TextHeightBehavior? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return TextHeightBehavior(
applyHeightToFirstAscent: json['applyHeightToFirstAscent'] == null
? true
: (json['applyHeightToLastDescent'] as bool),
applyHeightToLastDescent: json['applyHeightToLastDescent'] == null
? true
: (json['applyHeightToLastDescent'] as bool),
);
}