toDocument method
Implementation
@override
Map<String, Object?> toDocument() {
final Map<String, dynamic>? conditionsMap =
conditions != null ? conditions!.toDocument() : null;
Map<String, Object?> theDocument = HashMap();
if (appId != null) {
theDocument["appId"] = appId;
} else {
theDocument["appId"] = null;
}
if (description != null) {
theDocument["description"] = description;
} else {
theDocument["description"] = null;
}
if (updateProfileText != null) {
theDocument["updateProfileText"] = updateProfileText;
} else {
theDocument["updateProfileText"] = null;
}
if (retrieveDataText != null) {
theDocument["retrieveDataText"] = retrieveDataText;
} else {
theDocument["retrieveDataText"] = null;
}
if (deleteDataText != null) {
theDocument["deleteDataText"] = deleteDataText;
} else {
theDocument["deleteDataText"] = null;
}
if (retrieveDataEmailSubject != null) {
theDocument["retrieveDataEmailSubject"] = retrieveDataEmailSubject;
} else {
theDocument["retrieveDataEmailSubject"] = null;
}
if (deleteDataEmailSubject != null) {
theDocument["deleteDataEmailSubject"] = deleteDataEmailSubject;
} else {
theDocument["deleteDataEmailSubject"] = null;
}
if (deleteDataEmailMessage != null) {
theDocument["deleteDataEmailMessage"] = deleteDataEmailMessage;
} else {
theDocument["deleteDataEmailMessage"] = null;
}
if (conditions != null) {
theDocument["conditions"] = conditionsMap;
} else {
theDocument["conditions"] = null;
}
return theDocument;
}