toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final adm = this.adm;
  final apns = this.apns;
  final baidu = this.baidu;
  final defaultValue = this.defaultValue;
  final defaultSubstitutions = this.defaultSubstitutions;
  final gcm = this.gcm;
  final recommenderId = this.recommenderId;
  final templateDescription = this.templateDescription;
  final tags = this.tags;
  return {
    if (adm != null) 'ADM': adm,
    if (apns != null) 'APNS': apns,
    if (baidu != null) 'Baidu': baidu,
    if (defaultValue != null) 'Default': defaultValue,
    if (defaultSubstitutions != null)
      'DefaultSubstitutions': defaultSubstitutions,
    if (gcm != null) 'GCM': gcm,
    if (recommenderId != null) 'RecommenderId': recommenderId,
    if (templateDescription != null)
      'TemplateDescription': templateDescription,
    if (tags != null) 'tags': tags,
  };
}