fromJson static method

ActiveStoryStateLive? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static ActiveStoryStateLive? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ActiveStoryStateLive(storyId: (json['story_id'] as int?) ?? 0);
}