Method.fromJson constructor

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

Implementation

Method.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  params = json['params'] != null ? Params.fromJson(json['params']) : null;
  location =
      json['location'] != null ? Location.fromJson(json['location']) : null;
}