Map<String, dynamic> toJson() => { 'Functions': functions.map((k, v) => MapEntry(k, v.map((e) => e).toList())), };