SessionResumptionUpdate.fromJson constructor
SessionResumptionUpdate.fromJson(
- Object? j
Implementation
factory SessionResumptionUpdate.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SessionResumptionUpdate(
newHandle: switch (json['newHandle']) {
null => '',
Object $1 => decodeString($1),
},
resumable: switch (json['resumable']) {
null => false,
Object $1 => decodeBool($1),
},
);
}