VaultMobileSDK  18R3
iOS framework for Vault API
VEVVaultJSONField.h
Go to the documentation of this file.
1 
6 #import <Foundation/Foundation.h>
7 
8 NS_ASSUME_NONNULL_BEGIN
9 
14 typedef NS_ENUM(NSInteger, VEVFieldType) {
15 
19 
23 };
24 
33 @interface VEVVaultJSONField : NSObject
34 
37 @property (nonatomic, readonly) NSString* fieldName;
38 
41 @property (nonatomic, readonly) VEVFieldType type;
42 
52 - (instancetype)init:(NSString *)fieldName type:(VEVFieldType)type;
53 
61 - (id)parse:(NSDictionary *)json;
62 @end
63 
64 NS_ASSUME_NONNULL_END
Represents JSON number type.
Definition: VEVVaultJSONField.h:18
Instances of this class are associated with a specific key/value pair from a Vault response schema...
Definition: VEVVaultJSONField.h:33
VEVFieldType type
The type associated with the field in the Vault response.
Definition: VEVVaultJSONField.h:41
Represents JSON string type.
Definition: VEVVaultJSONField.h:22
VEVFieldType
An enumeration that corresponds to basic JSON types, e.g., VEVFieldTypeInteger -> number and VEVField...
Definition: VEVVaultJSONField.h:14
NSString * fieldName
The name of the key from the JSON schema.
Definition: VEVVaultJSONField.h:37