fromJson static method

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

Implementation

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

  return StoryRepostInfo(
    origin: StoryOrigin.fromJson(tdMapFromJson(json['origin'])),
    isContentModified: (json['is_content_modified'] as bool?) ?? false,
  );
}