fromJson static method
Inherited by: ReactionNotificationSourceAll ReactionNotificationSourceContacts ReactionNotificationSourceNone
Implementation
static ReactionNotificationSource? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case ReactionNotificationSourceAll.constructor:
return ReactionNotificationSourceAll.fromJson(json);
case ReactionNotificationSourceContacts.constructor:
return ReactionNotificationSourceContacts.fromJson(json);
case ReactionNotificationSourceNone.constructor:
return ReactionNotificationSourceNone.fromJson(json);
default:
return null;
}
}