ServiceEvent.fromJson constructor

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

Implementation

factory ServiceEvent.fromJson(Map<String, dynamic> json) {
  return ServiceEvent(
    createdAt: timeStampFromJson(json['createdAt']),
    id: json['id'] as String?,
    message: json['message'] as String?,
  );
}