toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'name': name,
'gender': gender?.name,
'deityType': deityType.getDeityType(),
'domains': domains,
'alignment': alignment?.toMap(),
'depiction': depiction,
'worshipedBy': worshipedBy?.getName(),
'worshipers': worshipers,
'shrinesRarity': shrinesRarity,
'positiveAttribute': positiveAttribute,
'negativeAttribute': negativeAttribute,
};
}