fromJson static method

Comment? fromJson(
  1. Map? json
)

Creates a Comment instance from a JSON map.

Implementation

static Comment? fromJson(Map? json) {
  if (json == null) {
    return null;
  }
  return Comment(
    json,
    id: json['id'],
  );
}