jsonToTextHeightBehavior function
Implementation
TextHeightBehavior jsonToTextHeightBehavior(Map<String, dynamic> data) {
return TextHeightBehavior(
applyHeightToFirstAscent: asT<bool>(data['applyHeightToFirstAscent']),
applyHeightToLastDescent: asT<bool>(data['applyHeightToLastDescent']),
leadingDistribution: ExEnum.tryParse<TextLeadingDistribution>(
TextLeadingDistribution.values,
asT<String>(data['leadingDistribution'])) ??
TextLeadingDistribution.proportional,
);
}