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 (name != null) {
theDocument["name"] = name;
} else {
theDocument["name"] = null;
}
if (scrollDirection != null) {
theDocument["scrollDirection"] = scrollDirection;
} else {
theDocument["scrollDirection"] = null;
}
if (type != null) {
theDocument["type"] = type;
} else {
theDocument["type"] = null;
}
if (crossAxisCount != null) {
theDocument["crossAxisCount"] = crossAxisCount;
} else {
theDocument["crossAxisCount"] = null;
}
if (maxCrossAxisExtentType != null) {
theDocument["maxCrossAxisExtentType"] = maxCrossAxisExtentType;
} else {
theDocument["maxCrossAxisExtentType"] = null;
}
if (absoluteMaxCrossAxisExtent != null) {
theDocument["absoluteMaxCrossAxisExtent"] = absoluteMaxCrossAxisExtent;
} else {
theDocument["absoluteMaxCrossAxisExtent"] = null;
}
if (relativeMaxCrossAxisExtent != null) {
theDocument["relativeMaxCrossAxisExtent"] = relativeMaxCrossAxisExtent;
} else {
theDocument["relativeMaxCrossAxisExtent"] = null;
}
if (childAspectRatio != null) {
theDocument["childAspectRatio"] = childAspectRatio;
} else {
theDocument["childAspectRatio"] = null;
}
if (padding != null) {
theDocument["padding"] = padding;
} else {
theDocument["padding"] = null;
}
if (mainAxisSpacing != null) {
theDocument["mainAxisSpacing"] = mainAxisSpacing;
} else {
theDocument["mainAxisSpacing"] = null;
}
if (crossAxisSpacing != null) {
theDocument["crossAxisSpacing"] = crossAxisSpacing;
} else {
theDocument["crossAxisSpacing"] = null;
}
if (conditions != null) {
theDocument["conditions"] = conditionsMap;
} else {
theDocument["conditions"] = null;
}
return theDocument;
}