fromJson static method

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

Implementation

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

  return CanPostStoryResultOk(storyCount: (json['story_count'] as int?) ?? 0);
}