RealtimeHello.fromJson constructor
Implementation
factory RealtimeHello.fromJson(Map<String, Object?> json) => RealtimeHello(
platformVersion: json['platformVersion'] as String,
configVersion: (json['configVersion'] as num?)?.toInt(),
accessToken: json['accessToken'] as String?,
sdkName: json['sdkName'] as String,
sdkVersion: json['sdkVersion'] as String,
previousConnectionId: json['previousConnectionId'] as String?,
resume: json['resume'] == null
? null
: (json['resume'] as List<Object?>)
.map(
(item) => RealtimeResumeCursor.fromJson(
(item as Map).cast<String, Object?>(),
),
)
.toList(),
);