fromJson method

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

Implementation

void fromJson(Map<String, dynamic> json) {
  id = json['id'];
  user_id = json['user_id'];
  user_name = json['user_name'];
  active = json['active'];
  var open_time_json = json['open_time'];
  var close_time_json = json['close_time'];
  var request_time_json = json['request_time'];
  open_time =
      open_time_json != null ? DateTime.tryParse(open_time_json) : null;
  close_time =
      close_time_json != null ? DateTime.tryParse(close_time_json) : null;
  request_time =
      request_time_json != null ? DateTime.tryParse(request_time_json) : null;
  address = json['address'];
  client = json['client'];
  user = json['user'];
  data = json['data'];
}