BaseLog constructor

BaseLog(
  1. LogType type, [
  2. Json? json
])

Implementation

BaseLog(this.type, [Json? json]) {
  if (json != null) {
    time = DateTime.parse(json['time']);
    orderId = json['orderId'];
  } else {
    time = DateTime.now();
    orderId = ++BaseLog.count;
  }
}