toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
  if (this.receivedAt != null) {
    json[r'received_at'] = this.receivedAt!.toUtc().toIso8601String();
  } else {
    json[r'received_at'] = null;
  }
    json[r'type'] = this.type;
    json[r'user'] = this.user;
  return json;
}