toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.flow != null) {
    json[r'flow'] = this.flow;
  } else {
    json[r'flow'] = null;
  }
  if (this.slug != null) {
    json[r'slug'] = this.slug;
  } else {
    json[r'slug'] = null;
  }
  if (this.platform != null) {
    json[r'platform'] = this.platform;
  } else {
    json[r'platform'] = null;
  }
  if (this.allowAnonymous != null) {
    json[r'allow_anonymous'] = this.allowAnonymous;
  } else {
    json[r'allow_anonymous'] = null;
  }
  if (this.metadata != null) {
    json[r'metadata'] = this.metadata;
  } else {
    json[r'metadata'] = null;
  }
  return json;
}