toJson method

Map<String, dynamic> toJson()

Converts this CalendarOwner object to a JSON object.

Each parameter of CalendarOwner corresponds to a key in the resulting JSON object.

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['name'] = name;
  data['address'] = address;
  return data;
}