# GoogleRidesharingConsumer Framework Reference

# GMTSVehicleAttributeKeyValuePair

    @interface GMTSVehicleAttributeKeyValuePair : https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCImmutableData.html

Object that contains a vehicle attribute key/value pair.
- `


  ### [key](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleAttributeKeyValuePair#/c:objc(cs)GMTSVehicleAttributeKeyValuePair(py)key)


  ` The key of this pair.

  #### Declaration

  Swift

      var key: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) NSString *_Nonnull key;

- `


  ### [value](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleAttributeKeyValuePair#/c:objc(cs)GMTSVehicleAttributeKeyValuePair(py)value)


  ` The value of this pair.

  #### Declaration

  Swift

      var value: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) NSString *_Nonnull value;

- `


  ### [-initWithKey:value:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleAttributeKeyValuePair#/c:objc(cs)GMTSVehicleAttributeKeyValuePair(im)initWithKey:value:)


  ` Initialization of the object.

  #### Declaration

  Swift

      init(key: String, value: String)

  Objective-C

      - (nonnull instancetype)initWithKey:(nonnull NSString *)key
                                    value:(nonnull NSString *)value;

  #### Parameters

  |---|---|
  | ` key ` | The key, should not be nil. |
  | ` value ` | The value, should not be nil. |

- `


  ### [-init](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleAttributeKeyValuePair#/c:objc(cs)GMTSVehicleAttributeKeyValuePair(im)init)


  ` Unavailable
  Will return nil.
  Use `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleAttributeKeyValuePair.html#/c:objc(cs)GMTSVehicleAttributeKeyValuePair(im)initWithKey:value:` instead.

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;