toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
    json[r'scopes'] = this.scopes;
  if (this.workspaceId != null) {
    json[r'workspaceId'] = this.workspaceId;
  } else {
    json[r'workspaceId'] = null;
  }
  if (this.expiresAt != null) {
    json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
  } else {
    json[r'expiresAt'] = null;
  }
  return json;
}