CalendarOwner.fromJson constructor

CalendarOwner.fromJson(
  1. Map<String, dynamic> json
)

Creates a new instance of CalendarOwner from a JSON object.

The JSON object should contain keys that correspond to the parameters of CalendarOwner.

Implementation

factory CalendarOwner.fromJson(Map<String, dynamic> json) {
  return CalendarOwner(
    name: json['name'],
    address: json['address'],
  );
}