RealtimeEndpointInfo.fromJson constructor

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

Implementation

factory RealtimeEndpointInfo.fromJson(Map<String, dynamic> json) {
  return RealtimeEndpointInfo(
    createdAt: timeStampFromJson(json['CreatedAt']),
    endpointStatus:
        (json['EndpointStatus'] as String?)?.toRealtimeEndpointStatus(),
    endpointUrl: json['EndpointUrl'] as String?,
    peakRequestsPerSecond: json['PeakRequestsPerSecond'] as int?,
  );
}