toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'aa073beb',
'\$name': 'MessageMediaGiveaway',
'flags': flags,
'onlyNewSubscribers': onlyNewSubscribers,
'winnersAreVisible': winnersAreVisible,
'channels': channels,
'countriesIso2': countriesIso2,
'prizeDescription': prizeDescription,
'quantity': quantity,
'months': months,
'stars': stars,
'untilDate': untilDate.toIso8601String(),
};
// Finished toJson.
return returnValue;
}