amplify-swift/AmplifyTestCommon/Models/M2MPostEditorUser/M2MPost.swift

25 lines
496 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 M2MPost: Model {
public let id: String
public var title: String
public var editors: List<M2MPostEditor>?
public init(id: String = UUID().uuidString,
title: String,
editors: List<M2MPostEditor>? = []) {
self.id = id
self.title = title
self.editors = editors
}
}