toJson method

Map toJson()

Implementation

Map toJson() {
  final val = <String, dynamic>{};

  val['country'] = country;
  if (line1 != null) val['line1'] = line1;
  if (line2 != null) val['line2'] = line2;
  if (area1 != null) val['area1'] = area1;
  val['area2'] = area2;
  if (postalCode != null) val['postalCode'] = postalCode;
  return val;
}