RelationalDatabaseEvent.fromJson constructor
Implementation
factory RelationalDatabaseEvent.fromJson(Map<String, dynamic> json) {
return RelationalDatabaseEvent(
createdAt: timeStampFromJson(json['createdAt']),
eventCategories: (json['eventCategories'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
message: json['message'] as String?,
resource: json['resource'] as String?,
);
}