TargetList.fromMap constructor

TargetList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

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