Converts this model to the map sent to the native SDK.
Map<String, Object> toJson() => <String, Object>{ 'data': data, 'size': size, };