factory Methods.fromJson(Map<String, dynamic> json) { return Methods(method: json.map((key, value) => MapEntry(key, ApiMethod.fromJson(value)))); }