toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': '4fddbee7',
'\$name': 'PaymentsUpdateStarGiftCollection',
'flags': flags,
'peer': peer,
'collectionId': collectionId,
'title': title,
'deleteStargift': deleteStargift,
'addStargift': addStargift,
'order': order,
};
// Finished toJson.
return returnValue;
}