toMap method
转换为Map
Implementation
@override
Map<String, dynamic> toMap() {
final map = super.toMap();
map.addAll({
'ecpm': ecpm,
if (networkName != null) 'networkName': networkName,
if (adnId != null) 'adnId': adnId,
if (channel != null) 'channel': channel,
if (subChannel != null) 'subChannel': subChannel,
if (requestId != null) 'requestId': requestId,
if (ritType != null) 'ritType': ritType,
if (scenarioId != null) 'scenarioId': scenarioId,
if (levelTag != null) 'levelTag': levelTag,
if (biddingType != null) 'reqBiddingType': biddingType,
if (customData != null) 'customData': customData,
});
return map;
}