RealtimeHelloAck.fromJson constructor
Implementation
factory RealtimeHelloAck.fromJson(Map<String, Object?> json) =>
RealtimeHelloAck(
connectionId: json['connectionId'] as String,
platformVersion: json['platformVersion'] as String,
configVersion: RealtimeConfigVersion.fromJson(json['configVersion']),
endUserId: json['endUserId'] as String?,
serverTime: json['serverTime'] as String,
frameTypes: (json['frameTypes'] as List<Object?>).cast<String>(),
limits: RealtimeHelloAckLimits.fromJson(
(json['limits'] as Map).cast<String, Object?>(),
),
resume: (json['resume'] as List<Object?>)
.map(
(item) => RealtimeHelloAckResume.fromJson(
(item as Map).cast<String, Object?>(),
),
)
.toList(),
);