SessionSubscriptionCancel.fromJson constructor
SessionSubscriptionCancel.fromJson(
- Object? json
Implementation
factory SessionSubscriptionCancel.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionSubscriptionCancel(
retention: map['retention'] == null
? null
: SessionRetention.fromJson(map['retention']),
subscription: (map['subscription'] as String),
);
}