ExecutionList.fromMap constructor

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

Implementation

factory ExecutionList.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    'total': 0,
    'executions': [],
    ...map,
  };

  return ExecutionList(
    total: map['total'],
    executions: List<Execution>.from(
      map['executions'].map((p) => Execution.fromMap(p)),
    ),
  );
}