toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
if (this.disabled != null) {
json[r'disabled'] = this.disabled;
} else {
json[r'disabled'] = null;
}
if (this.disabledReason != null) {
json[r'disabled_reason'] = this.disabledReason;
} else {
json[r'disabled_reason'] = null;
}
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;
}
json[r'user_id'] = this.userId;
if (this.voip != null) {
json[r'voip'] = this.voip;
} else {
json[r'voip'] = null;
}
return json;
}