FunctionList.fromMap constructor

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

Implementation

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

  return FunctionList(
    total: map['total'],
    functions: List<Func>.from(
      map['functions'].map((p) => Func.fromMap(p)),
    ),
  );
}