convert the response to a Map<String, dynamic>
Map<String, dynamic> toMap() { return <String, dynamic>{ 'n': n, 'size': size, }; }