toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'creationModes': creationModes?.map((e) => e.name).toList(),
    'colorOptions': colorOptions?.toMap(),
    'iosSignatureAspectRatio': iosSignatureAspectRatio?.aspectRatio,
    'androidSignatureOrientation': androidSignatureOrientation?.name,
    'fonts': fonts
  }..removeWhere((key, value) => value == null);
}