asMap property
Return Map<String, dynamic>
of complete data object
Implementation
@override
get asMap {
final map = <String, dynamic>{
_keyClassName: className,
};
if (objectId != null) {
map[_keyObjectId] = objectId;
}
if (createdAt != null) {
map[_keyCreatedAt] = parseDateFormat.format(createdAt!);
}
if (updatedAt != null) {
map[_keyUpdatedAt] = parseDateFormat.format(updatedAt!);
}
_data.forEach((key, value) {
map[key] = parseEncoder.encode(value);
});
return map;
}