jsonToTextHeightBehavior function

TextHeightBehavior jsonToTextHeightBehavior(
  1. Map<String, dynamic> data
)

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,
  );
}