toMap method
Converts this typography configuration to a map for platform channel communication
Implementation
Map<String, dynamic> toMap() {
return {
'titleLargeFontSize': titleLargeFontSize,
'titleLargeFontWeight': titleLargeFontWeight.index,
'bodyMediumFontSize': bodyMediumFontSize,
'bodyMediumFontWeight': bodyMediumFontWeight.index,
'labelLargeFontSize': labelLargeFontSize,
'labelLargeFontWeight': labelLargeFontWeight.index,
'bodySmallFontSize': bodySmallFontSize,
'bodySmallFontWeight': bodySmallFontWeight.index,
if (fontFamily != null) 'fontFamily': fontFamily,
};
}