func newCapacity(o *SDK.Capacity) Capacity {
    result := Capacity{}
    if o == nil {
        return result
    }