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