toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var holder = this.holder;
  var id = this.id;
  var permission = this.permission;
  var self = this.self;

  final json = <String, Object?>{};
  if (holder != null) {
    json[r'holder'] = holder.toJson();
  }
  if (id != null) {
    json[r'id'] = id;
  }
  if (permission != null) {
    json[r'permission'] = permission;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  return json;
}