RelationalDatabaseEvent.fromJson constructor

RelationalDatabaseEvent.fromJson(
  1. Map<String, dynamic> json
)

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?,
  );
}