toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var hasPermission = this.hasPermission;
  var errors = this.errors;
  var links = this.links;

  final json = <String, Object?>{};
  json[r'hasPermission'] = hasPermission;
  json[r'errors'] = errors.map((i) => i.toJson()).toList();
  if (links != null) {
    json[r'_links'] = links.toJson();
  }
  return json;
}