toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.clientId != null) {
    json[r'client_id'] = this.clientId;
  } else {
    json[r'client_id'] = null;
  }
  if (this.clientSecret != null) {
    json[r'client_secret'] = this.clientSecret;
  } else {
    json[r'client_secret'] = null;
  }
  if (this.appToken != null) {
    json[r'app_token'] = this.appToken;
  } else {
    json[r'app_token'] = null;
  }
  if (this.verificationToken != null) {
    json[r'verification_token'] = this.verificationToken;
  } else {
    json[r'verification_token'] = null;
  }
  if (this.provider != null) {
    json[r'provider'] = this.provider;
  } else {
    json[r'provider'] = null;
  }
  if (this.config != null) {
    json[r'config'] = this.config;
  } else {
    json[r'config'] = null;
  }
  return json;
}