Map<String, dynamic> toMap() { return <String, dynamic>{ 'totalCount': totalCount, 'sites': sites?.map((Site? x) => x?.toMap()).toList(), }; }