amplify-swift/AmplifyTestCommon/Models/TransformerV2/5V2/Post5V2.swift

40 lines
961 B
Swift

//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
// swiftlint:disable all
import Amplify
import Foundation
public struct Post5V2: Model {
public let id: String
public var title: String
public var editors: List<PostEditor5V2>?
public var createdAt: Temporal.DateTime?
public var updatedAt: Temporal.DateTime?
public init(id: String = UUID().uuidString,
title: String,
editors: List<PostEditor5V2>? = []) {
self.init(id: id,
title: title,
editors: editors,
createdAt: nil,
updatedAt: nil)
}
internal init(id: String = UUID().uuidString,
title: String,
editors: List<PostEditor5V2>? = [],
createdAt: Temporal.DateTime? = nil,
updatedAt: Temporal.DateTime? = nil) {
self.id = id
self.title = title
self.editors = editors
self.createdAt = createdAt
self.updatedAt = updatedAt
}
}