addon/components/inputs/geolocation.js
function serializeFormValue (formValue) {
  if (formValue.country) {
    formValue.country = countryCodeToName(formValue.country)
  }

  if (typeOf(formValue.latitude) === 'number') {
    formValue.latitude = `${formValue.latitude}`
  }

  if (typeOf(formValue.longitude) === 'number') {
    formValue.longitude = `${formValue.longitude}`
  }
}
function serializeFormValue (formValue) {
  if (formValue.country) {
    formValue.country = countryCodeToName(formValue.country)
  }

  if (typeOf(formValue.latitude) === 'number') {
    formValue.latitude = `${formValue.latitude}`
  }

  if (typeOf(formValue.longitude) === 'number') {
    formValue.longitude = `${formValue.longitude}`
  }
}
function serializeFormValue ( formValue ) { if ( formValue . country ) { formValue . country = countryCodeToName ( formValue . country ) } if ( typeOf ( formValue . latitude ) === 'number' ) { formValue . latitude = ` ${ formValue . latitude } ` } if ( typeOf ( formValue . longitude ) === 'number' ) { formValue . longitude = ` ${ formValue . longitude } ` } }
Serialize form value to be in correct format for sub-forms
@param {Object} formValue - unserialized form value
Serialize form value to be in correct format for sub - forms