factory LogList.fromMap(Map<String, dynamic> map) { return LogList( total: map['total'], logs: List<Log>.from(map['logs'].map((p) => Log.fromMap(p))), ); }