getCreatedAtTime method
Retrieves the createdAt timestamp as a DateTime object.
Implementation
DateTime getCreatedAtTime() {
if (data != null) {
if (data?.createdAt != null) {
return DateTime.parse(data!.createdAt!);
} else {
return DateTime.now();
}
} else {
return DateTime.now();
}
}