factory Link.fromMap(Map<String, dynamic> map) { return Link( map['rel'] as String, map['method'] as String, map['href'] as String, ); }