toJson method
Implementation
Map<String, Object?> toJson() {
var createdAt = this.createdAt;
var createdBy = this.createdBy;
var message = this.message;
var number = this.number;
final json = <String, Object?>{};
if (createdAt != null) {
json[r'createdAt'] = createdAt.toIso8601String();
}
if (createdBy != null) {
json[r'createdBy'] = createdBy;
}
if (message != null) {
json[r'message'] = message;
}
if (number != null) {
json[r'number'] = number;
}
return json;
}