toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'elements': elements.map((item) => item.toJson()).toList(),
'errors': errors.map((item) => item.toJson()).toList(),
'@type': constructor,
};