toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'name'] = this.name;
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
    json[r'url'] = this.url;
    json[r'events'] = this.events;
    json[r'isActive'] = this.isActive;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt!.toUtc().toIso8601String();
  } else {
    json[r'updatedAt'] = null;
  }
    json[r'secret'] = this.secret;
  return json;
}