toJson method

  1. @override
String toJson ()
override

Implementation

@override
String toJson() {
  var payload = boilerplate();

  if (address != null) {
    payload['address'] = address;
  }

  return json.encode(payload);
}