ServerEvent.fromJson constructor

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

Implementation

factory ServerEvent.fromJson(Map<String, dynamic> json) {
  return ServerEvent(
    createdAt: timeStampFromJson(json['CreatedAt']),
    logUrl: json['LogUrl'] as String?,
    message: json['Message'] as String?,
    serverName: json['ServerName'] as String?,
  );
}