|
|
@ -2461,6 +2461,58 @@ class NotesClient { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NotificationsNotificationSubjectRichParameters { |
|
|
|
|
|
|
|
NotificationsNotificationSubjectRichParameters( |
|
|
|
|
|
|
|
this._data, { |
|
|
|
|
|
|
|
this.mapStringDynamic, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
factory NotificationsNotificationSubjectRichParameters.fromJson(dynamic data) { |
|
|
|
|
|
|
|
Map<String, dynamic>? mapStringDynamic; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
mapStringDynamic = data as Map<String, dynamic>; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
return NotificationsNotificationSubjectRichParameters( |
|
|
|
|
|
|
|
data, |
|
|
|
|
|
|
|
mapStringDynamic: mapStringDynamic, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final dynamic _data; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final Map<String, dynamic>? mapStringDynamic; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
|
|
|
|
dynamic toJson() => _data; |
|
|
|
|
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NotificationsNotificationMessageRichParameters { |
|
|
|
|
|
|
|
NotificationsNotificationMessageRichParameters( |
|
|
|
|
|
|
|
this._data, { |
|
|
|
|
|
|
|
this.mapStringDynamic, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
factory NotificationsNotificationMessageRichParameters.fromJson(dynamic data) { |
|
|
|
|
|
|
|
Map<String, dynamic>? mapStringDynamic; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
mapStringDynamic = data as Map<String, dynamic>; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
return NotificationsNotificationMessageRichParameters( |
|
|
|
|
|
|
|
data, |
|
|
|
|
|
|
|
mapStringDynamic: mapStringDynamic, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final dynamic _data; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final Map<String, dynamic>? mapStringDynamic; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
|
|
|
|
dynamic toJson() => _data; |
|
|
|
|
|
|
|
// coverage:ignore-end |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@JsonSerializable() |
|
|
|
@JsonSerializable() |
|
|
|
class NotificationsNotificationAction { |
|
|
|
class NotificationsNotificationAction { |
|
|
|
NotificationsNotificationAction({ |
|
|
|
NotificationsNotificationAction({ |
|
|
@ -2531,11 +2583,11 @@ class NotificationsNotification { |
|
|
|
|
|
|
|
|
|
|
|
final String? subjectRich; |
|
|
|
final String? subjectRich; |
|
|
|
|
|
|
|
|
|
|
|
final List<String>? subjectRichParameters; |
|
|
|
final NotificationsNotificationSubjectRichParameters? subjectRichParameters; |
|
|
|
|
|
|
|
|
|
|
|
final String? messageRich; |
|
|
|
final String? messageRich; |
|
|
|
|
|
|
|
|
|
|
|
final List<String>? messageRichParameters; |
|
|
|
final NotificationsNotificationMessageRichParameters? messageRichParameters; |
|
|
|
|
|
|
|
|
|
|
|
final String? icon; |
|
|
|
final String? icon; |
|
|
|
|
|
|
|
|
|
|
@ -3317,7 +3369,6 @@ class UserStatusFindStatusOcsData { |
|
|
|
UserStatusFindStatusOcsData( |
|
|
|
UserStatusFindStatusOcsData( |
|
|
|
this._data, { |
|
|
|
this._data, { |
|
|
|
this.userStatusPublicUserStatus, |
|
|
|
this.userStatusPublicUserStatus, |
|
|
|
this.list, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
factory UserStatusFindStatusOcsData.fromJson(dynamic data) { |
|
|
|
factory UserStatusFindStatusOcsData.fromJson(dynamic data) { |
|
|
@ -3325,15 +3376,9 @@ class UserStatusFindStatusOcsData { |
|
|
|
try { |
|
|
|
try { |
|
|
|
userStatusPublicUserStatus = UserStatusPublicUserStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
userStatusPublicUserStatus = UserStatusPublicUserStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
List? list; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
list = data as List; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
assert([userStatusPublicUserStatus, list].where((final x) => x != null).length == 1, 'Need oneOf'); |
|
|
|
|
|
|
|
return UserStatusFindStatusOcsData( |
|
|
|
return UserStatusFindStatusOcsData( |
|
|
|
data, |
|
|
|
data, |
|
|
|
userStatusPublicUserStatus: userStatusPublicUserStatus, |
|
|
|
userStatusPublicUserStatus: userStatusPublicUserStatus, |
|
|
|
list: list, |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -3341,9 +3386,6 @@ class UserStatusFindStatusOcsData { |
|
|
|
|
|
|
|
|
|
|
|
final UserStatusPublicUserStatus? userStatusPublicUserStatus; |
|
|
|
final UserStatusPublicUserStatus? userStatusPublicUserStatus; |
|
|
|
|
|
|
|
|
|
|
|
/// Only happens when the user has never set a status |
|
|
|
|
|
|
|
final List? list; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
dynamic toJson() => _data; |
|
|
|
dynamic toJson() => _data; |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
@ -3420,7 +3462,6 @@ class UserStatusGetUserStatusOcsData { |
|
|
|
UserStatusGetUserStatusOcsData( |
|
|
|
UserStatusGetUserStatusOcsData( |
|
|
|
this._data, { |
|
|
|
this._data, { |
|
|
|
this.userStatus, |
|
|
|
this.userStatus, |
|
|
|
this.list, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
factory UserStatusGetUserStatusOcsData.fromJson(dynamic data) { |
|
|
|
factory UserStatusGetUserStatusOcsData.fromJson(dynamic data) { |
|
|
@ -3428,15 +3469,9 @@ class UserStatusGetUserStatusOcsData { |
|
|
|
try { |
|
|
|
try { |
|
|
|
userStatus = UserStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
userStatus = UserStatus.fromJson(data as Map<String, dynamic>); |
|
|
|
} catch (_) {} |
|
|
|
} catch (_) {} |
|
|
|
List? list; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
list = data as List; |
|
|
|
|
|
|
|
} catch (_) {} |
|
|
|
|
|
|
|
assert([userStatus, list].where((final x) => x != null).length == 1, 'Need oneOf'); |
|
|
|
|
|
|
|
return UserStatusGetUserStatusOcsData( |
|
|
|
return UserStatusGetUserStatusOcsData( |
|
|
|
data, |
|
|
|
data, |
|
|
|
userStatus: userStatus, |
|
|
|
userStatus: userStatus, |
|
|
|
list: list, |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -3444,9 +3479,6 @@ class UserStatusGetUserStatusOcsData { |
|
|
|
|
|
|
|
|
|
|
|
final UserStatus? userStatus; |
|
|
|
final UserStatus? userStatus; |
|
|
|
|
|
|
|
|
|
|
|
/// Only happens when the user has never set a status |
|
|
|
|
|
|
|
final List? list; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// coverage:ignore-start |
|
|
|
// coverage:ignore-start |
|
|
|
dynamic toJson() => _data; |
|
|
|
dynamic toJson() => _data; |
|
|
|
// coverage:ignore-end |
|
|
|
// coverage:ignore-end |
|
|
|