public JsonValue ToJson(JsonSerializer serializer) { var json = new JsonObject(); Id.Serialize(json, serializer, "id"); Board.SerializeId(json, "idBoard"); Closed.Serialize(json, serializer, "closed"); Desc.Serialize(json, serializer, "desc"); Due.Serialize(json, serializer, "due", ForceDueDate); List.SerializeId(json, "idList"); Name.Serialize(json, serializer, "name"); Pos.Serialize(json, serializer, "pos"); Subscribed.Serialize(json, serializer, "subscribed"); CardSource.SerializeId(json, "idCardSource"); UrlSource.Serialize(json, serializer, "urlSource"); return(json); }
public JsonValue ToJson(JsonSerializer serializer) { var json = new JsonObject(); Id.Serialize(json, serializer, "id"); Board.SerializeId(json, "idBoard"); Closed.Serialize(json, serializer, "closed"); Desc.Serialize(json, serializer, "desc"); Due.Serialize(json, serializer, "due", ForceDueDate); DueComplete.Serialize(json, serializer, "dueComplete"); List.SerializeId(json, "idList"); Name.Serialize(json, serializer, "name"); Pos.Serialize(json, serializer, "pos"); Subscribed.Serialize(json, serializer, "subscribed"); CardSource.SerializeId(json, "idCardSource"); UrlSource.Serialize(json, serializer, "urlSource"); IdMembers.Serialize(json, serializer, "idMembers"); IdLabels.Serialize(json, serializer, "idLabels"); if (KeepFromSource != CardCopyKeepFromSourceOptions.None) { KeepFromSource.Serialize(json, serializer, "keepFromSource"); } return(json); }