toNativeValue method

String toNativeValue()

Converts to the string value expected by the native SDKs.

Implementation

String toNativeValue() {
  switch (this) {
    case ProfileField.nickname:
      return 'NICKNAME';
    case ProfileField.picture:
      return 'AVATAR';
    case ProfileField.bio:
      return 'BIO';
  }
}