Items.fromJson constructor

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

Implementation

Items.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  createdAt = json['createdAt'];
  message = json['message'];
  user = json['user'] != null ? User.fromJson(json['user']) : null;
  // if (json['files'] != null) {
  //   files = <Null>[];
  //   json['files'].forEach((v) {
  //     files!.add(void.fromJson(v));
  //   });
  // }
}