Map<String, Object?> toJson() { var keys = this.keys; final json = <String, Object?>{}; json[r'keys'] = keys.map((i) => i.toJson()).toList(); return json; }