toMap method
Implementation
Map<String, dynamic> toMap() {
return {
if (usesMaterialDesign != null)
'uses-material-design': usesMaterialDesign,
if (assets != null && assets!.isNotEmpty) 'assets': assets,
if (generate != null) 'generate': generate,
if (fonts != null) 'fonts': fonts?.map((x) => x.toMap()).toList()
};
}