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