auto-generated/objc/SwaggerClient/Model/SWGTrade.m
#import "SWGTrade.h"

@implementation SWGTrade

- (instancetype)init {
  self = [super init];
  if (self) {
    // initialize property's default value, if any
    
  }
  return self;
}


/**
 * Maps json key to property name.
 * This method is used by `JSONModel`.
 */
+ (JSONKeyMapper *)keyMapper {
  return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{ @"timestamp": @"timestamp", @"symbol": @"symbol", @"side": @"side", @"size": @"size", @"price": @"price", @"tickDirection": @"tickDirection", @"trdMatchID": @"trdMatchID", @"grossValue": @"grossValue", @"homeNotional": @"homeNotional", @"foreignNotional": @"foreignNotional", @"trdType": @"trdType" }];
}

/**
 * Indicates whether the property with the given name is optional.
 * If `propertyName` is optional, then return `YES`, otherwise return `NO`.
 * This method is used by `JSONModel`.
 */
+ (BOOL)propertyIsOptional:(NSString *)propertyName {

  NSArray *optionalProperties = @[@"side", @"size", @"price", @"tickDirection", @"trdMatchID", @"grossValue", @"homeNotional", @"foreignNotional", @"trdType"];
  return [optionalProperties containsObject:propertyName];
}

@end
