def build_fields
      if @data.key?(:fields)
        @data[:fields].each do |k,v|
          v[:required] = true unless v.key?(:required)
        end
      else
        {city: {label:'City', required: true}, region: {label: 'Province', required: false}, postcode: {label: 'Post Code', required: false} }
      end
    end
def build_fields
      if @data.key?(:fields)
        @data[:fields].each do |k,v|
          v[:required] = true unless v.key?(:required)
        end
      else
        {city: {label:'City', required: true}, region: {label: 'Province', required: false}, postcode: {label: 'Post Code', required: false} }
      end
    end
all fields are required by default unless otherwise stated