Map<String, dynamic>? vendorsAsJson() => vendors?.map((key, value) => MapEntry(key, value.toJson()));