toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'push_provider'] = this.pushProvider;
  if (this.pushProviderName != null) {
    json[r'push_provider_name'] = this.pushProviderName;
  } else {
    json[r'push_provider_name'] = null;
  }
  if (this.voipToken != null) {
    json[r'voip_token'] = this.voipToken;
  } else {
    json[r'voip_token'] = null;
  }
  return json;
}