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

@implementation SWGAssetsConfigNetworkItem

- (instancetype)init {
  self = [super init];
  if (self) {
    // initialize property's default value, if any
    self.asset = @"BTC";
    self.tokenAddress = @"";
    self.depositEnabled = @(YES);
    self.withdrawalEnabled = @(YES);
    
  }
  return self;
}


/**
 * Maps json key to property name.
 * This method is used by `JSONModel`.
 */
+ (JSONKeyMapper *)keyMapper {
  return [[JSONKeyMapper alloc] initWithModelToJSONDictionary:@{ @"asset": @"asset", @"tokenAddress": @"tokenAddress", @"depositEnabled": @"depositEnabled", @"withdrawalEnabled": @"withdrawalEnabled", @"withdrawalFee": @"withdrawalFee", @"minFee": @"minFee", @"maxFee": @"maxFee" }];
}

/**
 * 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 = @[@"tokenAddress", @"depositEnabled", @"withdrawalEnabled", @"withdrawalFee", @"minFee", @"maxFee"];
  return [optionalProperties containsObject:propertyName];
}

@end
