ThreadModel.fromJson constructor

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

Implementation

factory ThreadModel.fromJson(Map<String, dynamic> json) => ThreadModel(
  id: json["id"],
  object: json["object"],
  createdAt: json["created_at"],
  metadata: Metadata.fromJson(json["metadata"]),
);