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