GreenBookModel
A class derived from DocumentModel containing details pertaining to all green book documents
Last updated
A class derived from DocumentModel containing details pertaining to all green book documents
Last updated
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
@objc public var identityNumber: String? { get }
Example: "010203040506"
The identity number of the subject as found on the green book document.
@objc public var surname: String? { get }
Example: "Doe"
The surname of the subject as found on the green book document.
@objc public var firstNames: String? { get }
Example: "John"
The first names of the subject as found on the green book document.
@objc public var countryOfBirth: String? { get }
Example: "SOUTH AFRICA"
The country of birth of the subject as found on the green book document.
@objc public var dateOfBirth: Date? { get }
Example: 1990/01/01
The date of birth of the subject as found on the green book document.
@objc public var dateIssued: Date? { get }
Example: 2005/01/01
The date issued of the green book document.
@objc public var bookType:
GreenBookType
{ get }
Example: GreenBookType.English
The type of green book document.
override public func encode(to encoder: Encoder) throws
This function also calls its super function
Encodes the model using the encoder provided. Used to convert the model to JSON.
Name
Type
Description
String?
The identity number of the subject as found on the green book document.
String?
The surname of the subject as found on the green book document.
String?
The first names of the subject as found on the green book document.
String?
The country of birth of the subject as found on the green book document.
Date?
The date of birth of the subject as found on the green book document.
Date?
The date issued of the green book document.
The type of green book document.
Signature
Return Type
Description
Void
Encodes the model using the encoder provided. Used to convert the model to JSON.