Machine.fromJson constructor

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

Implementation

Machine.fromJson(Map<String, dynamic> json) {
  collector = json['collector'] != null
      ? Collector?.fromJson(json['collector'])
      : null;
  company =
      json['company'] != null ? Company?.fromJson(json['company']) : null;
  deleted = json['deleted'];
  id = json['id'];
  linkedMachine = json['linked_machine'];
  name = json['name'];
}