factory Self.fromJson(Map<String, dynamic> json) => Self( href: (json['href'] ?? "") as String, methods: (json['methods'] ?? []) as List<String>, );