VisitsModel.fromJson constructor

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

Implementation

VisitsModel.fromJson(Map<String, dynamic> json) {
  visit = json['visit'] != null ? new Visit.fromJson(json['visit']) : null;
  survey =
      json['survey'] != null ? new Survey.fromJson(json['survey']) : null;
}