encode static method

Map<String, dynamic> encode(
  1. DesignDocument value
)

Implementation

static Map<String, dynamic> encode(DesignDocument value) {
	Map<String, dynamic> entityAsMap = {
		"id" : value.id,
		"rev" : value.rev,
		"revHistory" : value.revHistory.map((k0, v0) => MapEntry(k0, v0)),
		"language" : value.language,
		"views" : value.views.map((k0, v0) => MapEntry(k0, View.encode(v0))),
		"lists" : value.lists.map((k0, v0) => MapEntry(k0, v0)),
		"shows" : value.shows.map((k0, v0) => MapEntry(k0, v0)),
		"updateHandlers" : value.updateHandlers?.map((k0, v0) => MapEntry(k0, v0)),
		"filters" : value.filters.map((k0, v0) => MapEntry(k0, v0))
	};
	return entityAsMap;
}