toJson method

Map<String, Object?> toJson()

Implementation

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

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